aboutsummaryrefslogtreecommitdiff
path: root/vim/autocmd.vim
diff options
context:
space:
mode:
authorMiquel Sabaté <mikisabate@gmail.com>2014-10-06 10:49:48 +0200
committerMiquel Sabaté <mikisabate@gmail.com>2014-10-06 10:49:48 +0200
commita9d01f0fc7d3868f8fe601f75f69eaffddee8266 (patch)
treea98665493b5bd7d670d2673824bad2c8e4a0f0d1 /vim/autocmd.vim
parentdb78c37b928be253a087851b416b557ec6b1e05e (diff)
downloaddotfiles-a9d01f0fc7d3868f8fe601f75f69eaffddee8266.tar.gz
dotfiles-a9d01f0fc7d3868f8fe601f75f69eaffddee8266.zip
vim: properly set noexpandtab for Go and PHP.
Diffstat (limited to 'vim/autocmd.vim')
-rw-r--r--vim/autocmd.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/autocmd.vim b/vim/autocmd.vim
index f6154f8..991f272 100644
--- a/vim/autocmd.vim
+++ b/vim/autocmd.vim
@@ -6,10 +6,10 @@ 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 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 shiftwidth=4 tabstop=4
+autocmd FileType php set noexpandtab shiftwidth=4 tabstop=4
autocmd FileType javascript set shiftwidth=2 tabstop=2
" Call gofmt on save.