Simple JSON Syntax Highlighting in Vim
Suppose you are looking at some JSON in Vim, how can you syntax-highlight it? Should you look for a JSON plugin?
Well, you can do that, but there is a simple way: just :set ft=javascript
.
As Christopher Sexton points out, Vim supports JavaScript, and that can be used to syntax-highlight JSON files.
Written by Yaser Sulaiman
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#