diff options
| author | Miquel Sabaté <mikisabate@gmail.com> | 2014-10-06 10:50:45 +0200 |
|---|---|---|
| committer | Miquel Sabaté <mikisabate@gmail.com> | 2014-10-06 10:50:45 +0200 |
| commit | 098a2e22ac98b01b1cc0a2b64e0c81718743055e (patch) | |
| tree | 734aa11238862817c0105e086b80cca19ce26ec9 /vim/autocmd.vim | |
| parent | a9d01f0fc7d3868f8fe601f75f69eaffddee8266 (diff) | |
| download | dotfiles-098a2e22ac98b01b1cc0a2b64e0c81718743055e.tar.gz dotfiles-098a2e22ac98b01b1cc0a2b64e0c81718743055e.zip | |
vim: use setlocal instead of set.
Diffstat (limited to 'vim/autocmd.vim')
| -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 |
