Fuzzy file finding plugin recommendation?

Hi,

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 ctrlp.vim - Fuzzy file, buffer, mru, tag, ... finder with regexp support. : vim online 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: GitHub - junegunn/fzf.vim: 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 GitHub - tpope/vim-fugitive: fugitive.vim: A Git wrapper so awesome, it should be illegal).

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