28 May '13, 5pm

Save time with Rails.vim projections

May 28, 2013 joshsteiner vim rails.vim Extending Rails.vim with Custom Commands Thanks to the always awesome Tim Pope , Rails.vim version 5 was released a month ago, and with it comes a new way to configure navigation commands. The new projections.json replaces editor.json , which in turn replaced Rnavcommand . Projections allow you to define custom ways to navigate to files, open related files, or create files with boilerplate if the file does not exist. Here are some examples for predefined navigation commands that you may recognize: Assuming we are in app/models/user.rb , :AV will open up spec/models/user_spec.rb in a vertical split. To create a new file app/controllers/users_controller.rb , simply enter :Rcontroller users! and you will be taken to a file that looks like this: class UsersController < ApplicationController end The ! is the magic which force-creates a new...

Full article: http://robots.thoughtbot.com/post/50107717967/extending-r...

Tweets

oh my god — BMW launches new M site.

bmwusa.com 30 May '13, 6pm

Privacy Policy & Legal Company Information Careers Contact Us Site Map View Mobile Site BMW Motorcycles Join us ©2013 BMW ...