Intraspirit

December 20, 2009

A quick, and simple, addition to FuzzyFinder that will make it less of a pain to use.

A Simple FuzzyFinder Improvement

I've been using Vim, full-time, for a little over a year now. Since I started using Vim, I've been on a constant quest to customize and improve the way I use it. Today, I'm going to share a quick hack I have in place for FuzzyFinder; what I consider to be my cornerstone plugin.

Below is the hot-key configuration I currently have in place for FuzzyFinder:


map <leader>F :FufFile<CR>
map <leader>/ :FufFileRecursive<CR>
map <leader>f :FufFileWithCurrentBufferDir<CR>
map <leader>d :FufDir<CR>
map <leader>b :FufBuffer<CR>

Notice the "FufFileRecursive" command in there; that is custom addition. Below is the modification that I've made to add it.


call fuf#defineLaunchCommand('FufFileRecursive', s:MODE_NAME, '"**/"')

~/.vim/autoload/fuf/file.vim

That line will add a command to Vim called "FufFileRecursive" which will tell FuzzyFinder to look recursively inside the current working directory for whatever you type next. As you've probably guessed, this would be insane to run while in your home directory or from root, but when ran inside your project's root directory it can be very powerful.

I usually call "FufDir" first, which will let me move to a specific directory, and then the recursive file find command to find whatever files live inside of that directory. TextMate users will notice that this very similar to their Cmd+T command, and it is.

September 24, 2009
August 28, 2009
July 26, 2009
June 25, 2009