如果你遇到和我一样的问题,在controller里的方法里按gf,无法跳转到views/下的页面,同时提示E345:无法打开文件,那是因为rails现在是2.1版本了,而了rails.vim太旧了,不支持最新的.html.erb的文件名。
可以这样更新。
到http://git.tpope.net/vim-rails.git
上下载最新的rails.vim,你可能需要安装git
我是ubuntu:
#sudo apt-get install git-gui
然后下载rails.vim:
#git clone git://git.tpope.net/vim-rails.git
查看README文件:
To install, simply copy autoload/rails.vim, plugin/rails.vim, and
doc/rails.txt to the appropriate directories in ~/.vim
安装完毕。
quick-sheet:
插件:
ruby_imaps : Textmate like Ruby snippets for Vim
ruby_imaps是一个textmate似的代码snippets插件
快捷键:
ctrl+Wgf 在新tab中打开文件
gt|gT 在不同的tab之间前后跳转
分享到:
相关推荐
rails.vim提供了常用的一些命令,可以帮助开发,例如:Rgenerate, Rake, Rfind,RTview等,很方便,也很实用。 安装方法: 拷贝 autoload/rails.vim, plugin/rails.vim, 和 doc/rails.txt 到 ~/.vim 目录. ...
With this fully revised new edition, take a holistic view of full-stack development to create usable, high-performing applications with Rails 5. Rails is a great tool for building web applications, ...
Rails.Recipes.Rails.3.Edition.和源码
rails.vim 这是一个庞大的(很好的方式)Vim插件,用于编辑Ruby on Rails应用程序。 轻松浏览Rails目录结构。 gf考虑上下文,并且知道部分信息,固定装置等等。 有两个命令:A (备用)和:R (相关),可在文件之间...
Addison.Wesley.Rails.AntiPatterns.Best.Practice.Ruby.on.Rails.Refactoring
Ruby on rails.doc Ruby on rails.doc Ruby on rails.doc
Ruby.on.Rails.Tutorial,Learn.Web.Development.with.Rails,Third.Edition-中文版 文字版.pdf 个人收集电子书,仅用学习使用,不可用于商业用途,如有版权问题,请联系删除!
Apress.Beginning.Rails.3 Apress.Beginning.Rails.3
Ruby.on.Rails.Enterprise.Application.Development
Pragmatic.Security.on.Rails.Dec.2009.rar
RESTful.Rails.Development.2015.10.pdf
Apress,.Beginning.Google.Maps.Applications.with.Rails.and.Ajax.
Web开发:Ruby on Rails.pdf
Wiley.Ruby.on.Rails.Bible.Oct.2008
Build modern and progressive web applications with Vue.js and Ruby on Rails. As the Rails community embraces JavaScript, this book answers your most pressing questions, including how to integrate ...
Ruby.onRuby.on.Rails.Web开发之旅
Pragmatic - Agile.Web.Development.with.Rails.4.Sep.2013.pdf
Written for novice to intermediate Rails developers, Rails Recipes: Rails 3 Edition is packed with solutions to 70 of the most vexing problems you’re likely to face on the job. From building custom ...
官方推荐的Ruby On Rails书籍,Rails Recipes 2012最新版,英文, 专业ruby程序员必备