Today I Learned

hashrocket A Hashrocket project

Open Vim To A Tag Definition

If you are using ctags with Vim, you can provide a tag name when opening Vim. This signals to Vim that it should open to the file and location of the tag's definition. For instance, if you have a Rails project going and you provide Vim with the UsersController tag name, it will open the app/controllers/users_controller.rb. Just use the -t flag like so:

$ vim -t UsersController

See man vim for more details.

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.