2012年11月19日 星期一

Using git with Vim

把github上檔案抓到local端
由於我只需要最新的版本所以
$ git clone git://github.com/motemen/git-vim.git --depth=1
然後
$ cd git-vim
$ cp -r plugin syntax doc ~/.vim/
在.vimrc裡加入下列
set laststatus=2
set statusline=%{GitBranch()}
參考資源:
1. Using Git with Vim
2. 在Vim中使用Git

沒有留言:

張貼留言