Last Updated: February 25, 2016
· jodosha
Avatar white

Open current Vim buffer in GitHub

While discussing in chat with colleagues about code, I always found myself Ack locally for a keyword, opening a browser, reach GitHub, starting their fuzzy search tool, locate the file, locate the line, click, copy and paste..

Which is a nightmare.

Then I found an interesting hidden gem in Fugitive: Gbrowse. It your current Vim buffer as GitHub page. It also works in visual mode, by creating a selection link like this: https://github.com/jodosha/redis-store/blob/master/redis-store/lib/redis-store.rb#L9-L12

Say Thanks
Filed Under