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!