Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Syntax highlighting for JSON files

* Convince Vim that JSON is just javascript
  • Loading branch information...
commit 515a9b7b38e8c36186d5718aa5398da1c790ec3a 1 parent 11bdc52
Adarsh Pandit authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  vimrc
View
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
Please sign in to comment.
Something went wrong with that request. Please try again.