URL to Markdown link with title. Support issue and p/r title on Github/GHE private repo.
Checkout into your plugin directory, or Use plugin manager.
- Create $HOME/.mdlink-vim file like the following. And input your personal token.
let g:mdlink_vim = {
\ 'github_token': 'your personal token'
\}
- If using GHE, add optional settings.
let g:mdlink_vim = {
\ 'github_token': 'your personal token',
\ 'ghe_url': 'https://ghe.domain.name/',
\ 'ghe_api_url': 'https://ghe.domain.name/api/v3/repos/',
\ 'ghe_token': 'your personal token'
\}
- Put the cursor on the row existing URL. Or select multi rows by visual mode.
- Enter command
:MarkdownLink
.
- Put the cursor on the URL.
- Enter command
:MarkdownLinkOnlyOnCursor
.
- Enter command
:%Markdownlink
.
nnoremap <silent> ml :MarkdownLink<CR>
vnoremap <silent> ml :MarkdownLink<CR>
nnoremap <silent> mo :MarkdownLinkOnlyOnCursor<CR>
MIT
genkiroid