From d2df210813307643d6cd1f29b9b397d2ee57ee82 Mon Sep 17 00:00:00 2001 From: Tharre Date: Tue, 17 Jul 2018 21:56:35 +0200 Subject: vim: replace ctrlp with fzf CtrlP is nice when there are not a lot of files in the directory, but becomes really slow on larger codebases (i.e. the linux kernel). While it's possible to work around this to some extend, there are much better alternatives now. The most general (and fastest) of which is fzf. Combined with fd, a faster `find` it handles even absurd amounts of files practically instantly. The only real downside of this setup is that it requires both fzf and fd to be installed. --- .vimrc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to '.vimrc') diff --git a/.vimrc b/.vimrc index e330506..4654c6a 100644 --- a/.vimrc +++ b/.vimrc @@ -170,6 +170,8 @@ nmap (JavaComplete-Imports-RemoveUnused) " Automatically import nmap ai (JavaComplete-Imports-AddMissing) +nnoremap :Files + " }}} " airline {{{ @@ -193,9 +195,8 @@ let g:ale_linters = { \} " }}} -" ctrlp -let g:ctrlp_max_files = 1000000 -let g:ctrlp_cmd = 'CtrlPMixed' +" fzf +let $FZF_DEFAULT_COMMAND='fd --type file --follow --hidden --exclude .git' " supertab let g:SuperTabDefaultCompletionType = "context" -- cgit v1.2.3-70-g09d2