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.
Tweet