JSON.vim : A syntax highlighting file for JSON
script karma |
Rating 209/124,
Downloaded by 15530 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Jeroen Ruigrok van der Werven |
|
script type |
syntax |
|
description |
NOTE
==============================================================
Please use https://github.com/elzr/vim-json — it's an updated version of my this script and is Pathogen compatible.
This script will NOT be updated anymore, again, see the version on the URL above.
==============================================================
A simple highlighting file for JSON constructs. |
|
install details |
To your filetype.vim just add something like:
au! BufRead,BufNewFile *.json set filetype=json
and in your generic list of autocommands add something like the following for indentation and folding:
augroup json_autocmd
autocmd!
autocmd FileType json set autoindent
autocmd FileType json set formatoptions=tcq2l
autocmd FileType json set textwidth=78 shiftwidth=2
autocmd FileType json set softtabstop=2 tabstop=8
autocmd FileType json set expandtab
autocmd FileType json set foldmethod=syntax
augroup END |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 18.217.55.199
|