Skip to content
Browse files

Syntax highlighting for JSON files

* Convince Vim that JSON is just javascript
  • Loading branch information...
1 parent 11bdc52 commit 515a9b7b38e8c36186d5718aa5398da1c790ec3a Adarsh Pandit committed
Showing with 3 additions and 0 deletions.
  1. +3 −0 vimrc
3 vimrc
@@ -151,3 +151,6 @@ set wildignore+=*/tmp/*,*tags*,*.swp
" Format Markdown by reminding Vim that Markdown files end in .md
au BufRead,BufNewFile *.md set filetype=markdown
+" Syntax highlight JSON files by convincing Vim it's JavaScript
+autocmd BufNewFile,BufRead *.json set ft=javascript

0 comments on commit 515a9b7

Please sign in to comment.
Something went wrong with that request. Please try again.