Make json files fold by syntax
This commit is contained in:
parent
449e3ed76f
commit
9efe5ee13e
1 changed files with 6 additions and 0 deletions
6
.vimrc
6
.vimrc
|
@ -350,6 +350,12 @@ augroup file_vim
|
||||||
autocmd FileType vim setlocal foldmethod=marker foldenable
|
autocmd FileType vim setlocal foldmethod=marker foldenable
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
|
" Make json fold using syntax {{{2
|
||||||
|
augroup file_json
|
||||||
|
autocmd!
|
||||||
|
autocmd FileType json setlocal foldmethod=syntax foldenable
|
||||||
|
augroup END
|
||||||
|
|
||||||
""set es6 files to javascript {{{2
|
""set es6 files to javascript {{{2
|
||||||
augroup detectES6
|
augroup detectES6
|
||||||
autocmd!
|
autocmd!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue