]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vim/vimrc
shell: set GOTOOLCHAIN=local
[config/dotfiles.git] / vim / vimrc
index d73cb0ea19a426be848ce882921c4ce26af7c566..84813d960d6bf5758a7be09a2a17d3eadfd1e49e 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -920,11 +920,10 @@ if has('eval')
     endif
 
 " Settings for securemodelines.
-    " Only allow items I need (also includes spl which is not enabled by
-    " default).
+    " Only allow items I need
     if v:version >= 700 " need lists
         let g:secure_modelines_allowed_items = ['ft', 'spl', 'fdm',
-                                              \ 'sw', 'sts', 'noet']
+                                              \ 'ts', 'sw', 'sts', 'noet']
     endif
 
 " Settings for gnupg.
@@ -946,6 +945,16 @@ if has('eval')
     " Only highlight the current placeholder.
     let g:xptemplate_highlight = 'current'
 
+" Fzf settings
+
+    " Use FZF if available
+    if executable('fzf')
+        nmap <C-P> :FZF<CR>
+
+        " Disable CtrlP
+        let g:ctrlp_map = ''
+    endif
+
 " CtrlP settings.
     " Don't manage the working directory (the default setting is too slow for
     " me).
@@ -1072,11 +1081,16 @@ 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; use BufRead so modelines can overwrite
+" settings like 'tabstop'
+        autocmd BufRead,StdinReadPost *.go call <SID>UseTabs()
 
 " FTDETECT AUTO COMMANDS
 
 " Recognize .test as Tcl files.
         autocmd BufRead,BufNewFile *.test set filetype=tcl
+" /etc/network/interfaces
+        autocmd BufRead,BufNewFile /etc/network/interfaces set filetype=interfaces
 
 " OTHER AUTO COMMANDS