One of the most popular features of TextMate and RubyMine is Command-T, the ability to jump to a file with just a couple of keystrokes. Vim lacks this feature out of the box, leaving Vim newcomers less efficient.
For the casual Vim users out there, when in doubt, remember this: there is a plugin for that!
Partially enter the thing of interest, i.e., class name, method name, or file name, FuzzyFinder will take you there. Its three most useful features are:
- When you know where you want to go, type in a couple letters, FuzzyFinder will autocomplete or “fuzzy match” the object in question.
- When you don’t know where you want to go, FuzzyFinder can be used as a file explorer.
- When you want to jump into currently opened files, FuzzyFinder can be used as a buffer explorer
After installing FuzzyFinder, add the following lines to your .vimrc:
nmap ,f :FufFileWithCurrentBufferDir<CR> nmap ,b :FufBuffer<CR> nmap ,t :FufTaggedFile<CR>
Then, generate the tag file:
ctags -R --extra=+f .