]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vim: vimrc: use tabs in go
authorSimon Ruderich <simon@ruderich.org>
Sat, 14 Jul 2018 10:34:20 +0000 (12:34 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sat, 14 Jul 2018 10:34:20 +0000 (12:34 +0200)
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