- :Link
- Generate perm link of current line, if you are not visually selecting any line.
- Generate perm link of selected lines, if you are visually selecting few lines.
- :LinkFile
- Generate perm link of current file, no line is specified.
This vim plugin will try to find a recent remote commit to use:
- This function track back parent commits to find one recent remote hash, from current HEAD
- Max depth is 20
- Multi parents are taken care.
There are few edge cases when translate current line number to remote commit line number.
- Start line of your selection is inside a block of new code(hunk), start line is translated to the start of old code of the hunk.
- End line of your selection is inside a block of new code(hunk), end line is translated to the end of old code of the hunk.
- Your selecting lines are all new lines, the line just at the top of the selection are used, if the line just at the top is line 0, line 1 is used.
- Current file is a new file, you will be prompted a message and no content will be sent to clipboard