]> ruderich.org/simon Gitweb - config/dotfiles.git/blobdiff - vim/vimrc
vim: vimrc: prefer fzf over CtrlP
[config/dotfiles.git] / vim / vimrc
index eb2ddb396557b7733ed3a7842ba92d6996e90741..86c1e706e8263965107374ae908d8795fbd682eb 100644 (file)
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -946,6 +946,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).
@@ -1079,6 +1089,8 @@ if has('autocmd')
 
 " 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