Skip to content

Commit a1b8698

Browse files
committed
Settings should be set for the buffer only
Closes #2
1 parent 7a92f32 commit a1b8698

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ftdetect/json.vim

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ autocmd BufNewFile,BufRead *.json set filetype=json
22

33
augroup json_autocmd
44
autocmd!
5-
autocmd FileType json set autoindent
6-
autocmd FileType json set formatoptions=tcq2l
7-
autocmd FileType json set textwidth=78 shiftwidth=2
8-
autocmd FileType json set softtabstop=2 tabstop=8
9-
autocmd FileType json set expandtab
10-
autocmd FileType json set foldmethod=syntax
5+
autocmd FileType json setlocal autoindent
6+
autocmd FileType json setlocal formatoptions=tcq2l
7+
autocmd FileType json setlocal textwidth=78 shiftwidth=2
8+
autocmd FileType json setlocal softtabstop=2 tabstop=8
9+
autocmd FileType json setlocal expandtab
10+
autocmd FileType json setlocal foldmethod=syntax
1111
augroup END

0 commit comments

Comments
 (0)