Install Command-T
Short summary of the official doc
- Vim compiled with Ruby support. To verify this, run
:ruby puts RUBY_VERSION. If it does NOT output error message, this vim has ruby support. Remember this version number. It will be used later. - Pathogen or other vim plugin manager.
Install Command-T.
git clone https://github.com/wincent/command-t.git ~/.vim/bundle/command-t
cd ~/.vim/bundle/command-t/ruby/command-t- Use the SAME Ruby that your vim uses (Check the Ruby version in Prerequisite step 1) to run
ruby extconf.rb. In Mac OS e.g. Mavericks, your system may use Ruby 2.0. But your vim might use an older version e.g. 1.8.7. In that case,/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb make
You probably want to map the leader key to other key because on Mac, by default, Command + t is to open a new tab. To change the leader key to comma, add let mapleader = ',' in your .vimrc
On Mac OS, pressing 'esc' has NO effect. To dismiss Command-T, Ctrl + c.
Mmmm...