Today I Learned

hashrocket A Hashrocket project

Browse ruby gem source inside of a vim tab

When you are working with gems you often need to jump to the gem's source. Vim has a really neat trick for that.

First make sure you have the vim-bundler plugin by Tim Pope installed: https://github.com/tpope/vim-bundler. Then you can use the following command:

:Btabedit name_of_gem

💥Boom.

Vim opens the gem's source starting with a netrw file list in a new tab for you.

Bonus: Vim will autocomplete the gem name for you based on your Gemfile.

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.