URLs are great aren’t they?
You include them in your Slack messages and your co-workers can see exactly what you’re talking about in a single click. I wish people would use them more (and design apps that support them properly).
Anyway, a super-useful Vim mapping I use is:
vnoremap <leader>gb :GBrowse! master:%<cr>
which, after visually selecting a block of code, grabs its Github URL from the
master and copies it to the clipboard. I use this several times
If you want the URL for the code block from your current branch, use:
although you have to have pushed your branch for the URL to resolve.
Various other “fugitive-objects” can be passed to
open or copy URLs for other objects – see the help file
for more details.