]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vim/vimrc
vim: vimrc: use tabs in go
[config/dotfiles.git] / vim / vimrc
index 84768422aa07d5ad0f2492b782d26e5ae8c6d5f9..eb2ddb396557b7733ed3a7842ba92d6996e90741 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -136,9 +136,13 @@ if has('viminfo')
     set viminfo^='1000
 endif
 
-" Use strong encryption if possible, also used for swap/undo files.
+" Use strong(er) encryption if possible, also used for swap/undo files.
 if exists('+cryptmethod')
-    set cryptmethod=blowfish
+    if s:HasVersionAndPatch(704, 399)
+        set cryptmethod=blowfish2
+    else
+        set cryptmethod=blowfish
+    endif
 endif
 
 " Clear all vimrc-related autocmds. Has to be done here as the vimrc augroup
@@ -1068,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
 
@@ -1079,10 +1085,6 @@ if has('autocmd')
 " Disable spell checking, displaying of list characters and long lines when
 " viewing documentation.
         autocmd BufReadPost /usr/share/doc/* setlocal nospell nolist | 2match
-
-" Use diff filetype for mercurial patches in patch queue.
-        autocmd BufReadPost */.hg/patches/* set filetype=diff
-
     augroup END
 endif