"Fuzzily" open a file in vim from the command line

393 Views Asked by At

I've been using the FuzzyFinder plugin for Vim for a couple weeks and I'm really enjoying it so far. The one thing I do find annoying is that all those fuzzy-finding benefits are only available after Vim is already open.

Is there a way to fuzzy-find a file from the command line, rather than typing out the whole path?

2

There are 2 best solutions below

2
On BEST ANSWER

You can start Vim with FuzzyFinder pre-populated:

vim -c ":FufFile somefilepattern"

Then you only need to select the file from the control.

0
On

You can do it with zsh, check this demo