The Kai Way

Pragmaticly hacking

用Vim做Ruby开发

| Comments

最新的配置文件在http://github.com/kaichen/dotfiles

今天终于找到了最后一个插件,Ruby Snippets,终于打造出自己觉得最强Ruby开发利器的Vim,写下来记下来。。。

Ruby Snippets的演示: http://eustaquiorangel.com/blog/show/438

Rails.vim的演示: http://www.youtube.com/watch?v=30P8DSNOZuU&mode=related&search=rcov%20rails%20testing%20ruby

我的插件列表:

vim-ruby gem install vim-ruby –remote && vim-ruby-install.rb rails.vim http://www.vim.org/scripts/script.php?script_id=1567 rubysnippets http://www.vim.org/scripts/script.php?script_id=1966 project http://www.vim.org/scripts/script.php?script_id=69 NERD_tree http://www.vim.org/scripts/script.php?script_id=1658 bufexplorer http://www.vim.org/scripts/script.php?script_id=42 taglist http://www.vim.org/scripts/script.php?script_id=273 winmanager http://www.vim.org/scripts/script.php?script_id=95 matchit http://www.vim.org/scripts/script.php?script_id=39 svncommand http://www.vim.org/scripts/script.php?script_id=922 surround http://www.vim.org/scripts/script.php?script_id=1697 supertab http://www.vim.org/scripts/script.php?script_id=1643

加上上面的插件后,VIM就很好很强大,有rails.vim(目前支持Rails2.0)的跳转和快捷的rake执行等等的优点不用多说了,而vim- ruby则提供了高亮和代码补全等,今天找到的Ruby Snippets就实现了类似Textmate的模板补全(让我眼红了很久的功能)。nerd-tree和bufexplorer,winmanager 组成了一个代码浏览文件浏览的强大功能,svncommand和surround分别提供了svn支持和标签补全。。。

这样的VIM真是很好很强大。。。

上图:

image

参考的资料: - http://wiki.rubyonrails.org/rails/pages/HowtoUseVimWithRails - http://www.upulife.com/leo/?p=191 - http://www.upulife.com/leo/?p=196 - http://blog.csdn.net/wooin/archive/2007/10/31/1858917.aspx