knsh14 / vim-github-link

generate github link from selected lines in vim
MIT License
62 stars 15 forks source link
git github vim vim-plugin

vim-github-link

Copy github/gitlab link for current line(s) to clipboard.

Links have the format:

The plugin defines the following functions which returns different $REF references:

Usage

In normal mode

:1,3GetCurrentBranchLink

then link is copied to your clipboard.

In visual mode, same command after selected.

Install

dein.vim

add below line into .vimrc

call dein#add('knsh14/vim-github-link')

or add to toml file

[[plugins]]
repo = 'knsh14/vim-github-link'

vim-plug

Plug 'knsh14/vim-github-link'