Ⅰ. 插件描述
rails.vim: Ruby on Rails power toolsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'romanvbabenko/rails-vim-you-belong-with-me'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'romanvbabenko/rails-vim-you-belong-with-me'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'romanvbabenko/rails-vim-you-belong-with-me'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/romanvbabenko/rails.vim
Ⅳ. 文档说明
= Rails.vim
Basic support:
- {Loops}[https://github.com/kovyrin/loops]
- {CarrierWave}[https://github.com/jnicklas/carrierwave] Uploaders
- {Apotomo}[https://github.com/apotonick/apotomo] Cells
- {FactoryGirl}[https://github.com/thoughtbot/factory_girl] factories
- {DelayedJob}[https://github.com/collectiveidea/delayed_job]
== Usage
- Rloop - search loops definitions at app/loops
- Ruploader - search loops definitions at app/uploader
- Rcell - search cell definitions at app/cells
- Rfactory - search factory definitions at spec/factories
- Rjob - search factory definitions at app/jobs
Rspec - without params jump to relative spec definition
== Features
=== Support fixture replacements
- https://github.com/thoughtbot/factory_girl
- https://github.com/notahat/machinist
- https://github.com/sinsiliux/Blueprints
- https://github.com/paulelliott/fabrication
== Installation
To install, simply copy autoload/rails.vim, plugin/rails.vim, and
doc/rails.txt to the appropriate directories in ~/.vim. Alternatively,rake install may be used.
See doc/rails.txt for documentation.
Copyright Tim Pope. This plugin is licensed under the same terms as Vim
- No warranties, expressed or implied.