8rc8kq
Last Updated: February 25, 2016
·
369
· 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
Respond
Filed Under