Projections in Rails.vim 5.0
Supercharge your navigation
Tuesday, 30 April 13
Slide 2
Slide 2 text
What kind of sorcery is this?
Projections are a robust architecture that supersedes
Rails.vim NavCommands. With projections you can:
‣Navigate to !les
‣Create new ones from templates
‣Jump between related and alternated !les with ease
Tuesday, 30 April 13
Slide 3
Slide 3 text
Where do I con!gure them?
By itself, Rails.vim supports two con!guration options:
‣Global, in your ~/.vimrc !le
‣Per project, in config/projections.json
Tuesday, 30 April 13
Slide 4
Slide 4 text
If you have Bundler.vim
Then projections can be loaded from:
‣Your ~/.vimrc !le and only if the gem is present in the
Gemfile.
‣From any lib/rails/projections.json included in a
gem present in the Gemfile.
Tuesday, 30 April 13
Slide 5
Slide 5 text
Demo!
Tuesday, 30 April 13
Slide 6
Slide 6 text
Links
‣https://github.com/tpope/vim-rails
‣https://github.com/tpope/vim-bundler
‣https://gist.github.com/cloud8421/5490033
Tuesday, 30 April 13