diff options
| -rw-r--r-- | vim/autocmd.vim | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/vim/autocmd.vim b/vim/autocmd.vim index 991f272..810b7fa 100644 --- a/vim/autocmd.vim +++ b/vim/autocmd.vim @@ -2,15 +2,15 @@ " Indentation rules for different languages. " Some rules regarding indentation on different languages. -autocmd FileType sh set shiftwidth=4 tabstop=4 -autocmd FileType perl set shiftwidth=4 tabstop=4 -autocmd FileType c set shiftwidth=4 tabstop=4 -autocmd FileType yacc set shiftwidth=4 tabstop=4 -autocmd FileType go set noexpandtab shiftwidth=4 tabstop=4 -autocmd FileType ruby set shiftwidth=2 tabstop=2 -autocmd FileType cpp set shiftwidth=4 tabstop=4 -autocmd FileType php set noexpandtab shiftwidth=4 tabstop=4 -autocmd FileType javascript set shiftwidth=2 tabstop=2 +autocmd FileType sh setlocal shiftwidth=4 tabstop=4 +autocmd FileType perl setlocal shiftwidth=4 tabstop=4 +autocmd FileType c setlocal shiftwidth=4 tabstop=4 +autocmd FileType yacc setlocal shiftwidth=4 tabstop=4 +autocmd FileType go setlocal noexpandtab shiftwidth=4 tabstop=4 +autocmd FileType ruby setlocal shiftwidth=2 tabstop=2 +autocmd FileType cpp setlocal shiftwidth=4 tabstop=4 +autocmd FileType php setlocal noexpandtab shiftwidth=4 tabstop=4 +autocmd FileType javascript setlocal shiftwidth=2 tabstop=2 " Call gofmt on save. autocmd FileType go autocmd BufWritePre <buffer> Fmt |
