Skip to content

mdlink-vim is vim plugin for URL to Markdown link with title.

Notifications You must be signed in to change notification settings

genkiroid/mdlink-vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mdlink-vim

URL to Markdown link with title. Support issue and p/r title on Github/GHE private repo.

Demo

demo

Install

Checkout into your plugin directory, or Use plugin manager.

Requirements

Settings

  1. Create $HOME/.mdlink-vim file like the following. And input your personal token.
let g:mdlink_vim = {
\ 'github_token':   'your personal token'
\}
  1. 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'
\}

Usage

MarkdownLink

  1. Put the cursor on the row existing URL. Or select multi rows by visual mode.
  2. Enter command :MarkdownLink.

MarkdownLinkOnlyOnCursor

  1. Put the cursor on the URL.
  2. Enter command :MarkdownLinkOnlyOnCursor.

Convert all URL

  1. Enter command :%Markdownlink.

Map example

nnoremap <silent> ml :MarkdownLink<CR>
vnoremap <silent> ml :MarkdownLink<CR>
nnoremap <silent> mo :MarkdownLinkOnlyOnCursor<CR>

License

MIT

Authors

genkiroid

About

mdlink-vim is vim plugin for URL to Markdown link with title.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published