Today I Learned

hashrocket A Hashrocket project

Navigate to Rails table definition in vim

Its often necessary to know what columns are on what tables when working in Rails. The vim plugin vim-rails includes a handy command to navigate directly to the db/schema.rb, :Eschema. When you pass a table name as an argument, like :Eschema things, vim will open the schema.rb file in a buffer and place the cursor on the table definition for that table.

H/T Jason Cummings

See More #vim TILs
Every developer at Hashrocket is a Vim expert. Check out our development environment, Dotmatrix, and if you are in Chicago, come to the Vim Chicago Meetup hosted at our Chicago office.