rails.vim new feature - custom gem projections for faster navigation - resque, activeadmin, carrierwave, cells. draper
Out Of Date Warning
This article was published on 29/05/2013, this means the content may be out of date or no longer relevant.
You should verify that the technical information in this article is still up to date before relying upon it for your own purposes.
Recently, a new version of the Rails.vim plugin for .. well Vim.. was released. That added flexible so called projections, which are custom file openings, templates etc. This week, thoughtbot published an article, how to leverage that feature.
Here, I show some of my recent added projections for some Gems that we use:
- custom services in app/services,
- Active-Admin files in app/admin with relationship to the corresponding model, as well as a basic template, when creating new admin files with
- Cells with method-to-view navigation via
:R, similar to controller-view
- draper and carrierwave specific files, copied from https://gist.github.com/jsteiner/5556217 but sorted into the r:rails_gem_projections. This way, this navigations commands are only active, when that gems are listed in the current bundle
- Resque basic worker
- all spec/support as
Feel free, to modify my examples and share your own snippets!