Command-T for Vim, an awesome plugin

ultimative vim configuration

Command-T makes it fast and intuitive to find and open files with a minimal number of keystrokes. It's named Command-T because it is inspired by the "Go to File" window in TextMate. It should work on Mac, Windows and Linux.

fuzzyfinder.vim offers similar functionality to Command-T, but Command-T seems to be a much better implementation.

Some useful links:

Video Demo

Installing Command-T

It should be really easy to install Command-T, granted that your vim is built with Ruby support and that you have a C compiler:

1) Download command-t.vba 
2) In a terminal run:
    $ vim command-t.vba 
3) Then run source the vimball to install it:
    :source % 
4) Afterwards build the C extension:
    $ cd ~/.vim/ruby/command-t 
    $ ruby extconf.rb 
    $ make 

Once installed, restart Vim and read the documentation on how to use Command-T:

:help command-t

Troubleshooting

Be sure that your vim has support for ruby. You can find out by running:

:version

In the :version output be sure that you can see +ruby.

I also had a weird error when trying to compile the C extension:

error: ‘for’ loop initial declaration used outside C99 mode

I solved this by adding -std=c99 to CFLAGS in the Makefile, e.g.:

CFLAGS += -std=c99

Try Command-T out

Just wanted to share this little plugin with you. If you enjoy this plugin remember to make a donation and support the developer.

Check also my ultimate Vim configuration (vimrc).

8. May 2010 Code · Tips · VIM Editor
© Amir Salihefendic