← Back to Upcase

Fuzzy file finding plugin recommendation?


So I’ve made the full jump to vim from Sublime Text, but what I miss is hitting Ctrl+P in Sublime, typing the approximate file name and navigating to it via a “fuzzy” match.

  1. Any recommendations for this functionality in Vim? (I came across http://www.vim.org/scripts/script.php?script_id=3736 but was unclear if it was being maintained actively).

The thoughtbot dotfiles use this fork of Ctrl-P.

Command-T is also popular.

1 Like

Ctrl-P is great, I use it. There’s also Untie, but I found that hard to “get into”. It’s possible that it’s “better” if you take the time to understand it. At least that’s the feeling I got… maybe :smile:

Lots of really good stuff here http://vimawesome.com/

1 Like

[quote=“jondkinney, post:3, topic:4674”]

[/quote] Thanks Jon and Andy, I should have asked sooner! Re: Ctrl-P vs Unite, There’s always that tradeoff between digging into something more complicated vs using something simpler and just getting started I feel like… :smile:

I was recently introduced to fzf.vim (link: https://github.com/junegunn/fzf.vim) and after a few days of using it, I haven’t missed Ctrl-P at all. Fzf.vim just works so nicely.

Here’s a nice getting started guide: http://tilvim.com/2016/01/06/fzf.html

I mapped the file search to Ctrl-p, so I didn’t have to change that bit of muscle memory and also created a new leader key because fzf.vim makes it really convenient to search your git commits (requires https://github.com/tpope/vim-fugitive).

These are the keybindings I used to make the transition pretty seamless:

" View/Search commits with fzf
nmap <Leader>c :Commits<cr>

" Search with fzf
nmap <C-p> :Files<cr>

And if you’re using thoughtbot’s dotfiles, you’ll need to tell Ctrl-P not to load

" Don't load ctrlp
let g:loaded_ctrlp = 1