From 098a2e22ac98b01b1cc0a2b64e0c81718743055e Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Date: Mon, 6 Oct 2014 10:50:45 +0200 Subject: vim: use setlocal instead of set. --- vim/autocmd.vim | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'vim/autocmd.vim') 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 Fmt -- cgit v1.2.3