my favorite

2011/03/09

Snow Leopard w/ VIM Command-T support

Navigation is truly what I use so frequently and Command-T make it damn easy
To keep it simple I will write every step in one line.

Although there are a little bit many steps, I thought it's still quite easy to do :)

0: prerequisite:
xcode

1. install homebrew
ruby -e "$(curl -fsSL https://gist.github.com/raw/323731/install_homebrew.rb)"

2. install python (replace build-in python2.6.1)
brew install python

3. install pip
brew install pip

4. install mercurial
pip install mercurial

5. download vim source
hg clone https://vim.googlecode.com/hg/ vim

6. build vim
cd vim && ./configure --prefix=/usr/local/bin --enable-rubyinterp --enable-gui=no --disable-gpm

7. make it and now we have ruby-integrated VIM !
make

8. copy to PATH you prefer
sudo cp src/vim /usr/local/bin

9. install command-T
curl -O http://s3.wincent.com/command-t/releases/command-t-1.0.1.vba

10. edit downloaded vba file
vim command-t-1.0.1.vba

11. source it !
:so %

DONE, next time when you use vim you can type <leader>t to trigger Command-T works!
Huh...!? not command t?
Actually I can't find a way to remap my Terminal.app New Tab shortcut, or I would like to remap it to command t

No comments:

BIO

Taipei, GuTing, Taiwan

huang47 | personal

huang47 | personal