]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vim: vimrc: prefer fzf over CtrlP
authorSimon Ruderich <simon@ruderich.org>
Wed, 13 Nov 2019 08:38:57 +0000 (09:38 +0100)
committerSimon Ruderich <simon@ruderich.org>
Wed, 13 Nov 2019 08:45:19 +0000 (09:45 +0100)
vim/vimrc

index 8646ceee4775c3b55f1a4bc5659828a15cd9dc38..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).