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
Tweet