首先有个视频来源:
http://railscasts-china.com/episodes/rails-with-vim?autoplay=true
其中的资料可以从下面的这个网址进行查看(可以从视频的评论当中可以找到):
https://github.com/carlhuda/janus
bundle 的安装方法 :BundleInstall
安装vim的最简单的方法:
1 先手动安装vim
yum install vim
2 参考下面的url安装vim插件
参考: https://github.com/ma6174/vim
需要安装的Vim如下:
The NERD tree:
http://www.vim.org/scripts/script.php?script_id=1658
commandT :
http://www.vim.org/scripts/script.php?script_id=3025
CtrlP:
http://kien.github.com/ctrlp.vim/
rails.vim
http://www.vim.org/scripts/script.php?script_id=1567
snipMate
http://www.vim.org/scripts/script.php?script_id=2540
ctags
http://ctags.sourceforge.net/
ack.vim
https://github.com/mileszs/ack.vim
关于vim的配置文件的说明可以参考:
http://www.cnblogs.com/ma6174/archive/2011/12/10/2283393.html
三 常用命令
:RSmodel user
:RVmodel admin
方法, partial的跳转命令:
1 光标停留在方法上
2 gf
ctags使用:
先创建tags
ctags -R −−exclude=.git −−exclude=.log −−exclude=.csv
ctrl + ]
Ack 用法
1 :Ack
2 :cn 后一个 :cp 前一个