CommandT

Prerequisites

  • Check the version of Ruby on your workstation Install

  • Make sure vim has support for Ruby Ruby.

  • The version of Ruby in vim and on the system should be the same.

Install

  • Using Vundle:

    Bundle 'wincent/Command-T.git'
    
  • Install using:

    :BundleInstall
    
  • Compile the Ruby code:

    cd ~/.vim/bundle/Command-T/
    rake make
    

Usage

:CommandT                           mapped to <leader>t in my ~/.vimrc
:CommandTBuffer                     currently open files
:CommandTFlush                      re-scan folders

I have mapped leader t to CommandT in my ~/.vimrc:

nnoremap <leader>t :CommandT<CR>