Search code examples
vimfuzzyfinder

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


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?


Solution

  • You can start Vim with FuzzyFinder pre-populated:

    vim -c ":FufFile somefilepattern"
    

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