]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vim/vimrc
vim: vimrc: use tabs in go
[config/dotfiles.git] / vim / vimrc
index d73cb0ea19a426be848ce882921c4ce26af7c566..eb2ddb396557b7733ed3a7842ba92d6996e90741 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -1072,6 +1072,8 @@ if has('autocmd')
         autocmd FileType vimperator setlocal commentstring=\"%s
 " Use TeX compiler for (La)TeX files.
         autocmd FileType tex compiler tex
+" Go always uses tabs for indentation.
+        autocmd FileType go call <SID>UseTabs()
 
 " FTDETECT AUTO COMMANDS