Skip to content

tomdalling/vim-markdown-extras

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-markdown-extras

Extra functionality for markdown files.

Disable all default mappings with:

let g:markdown_extras_enable_mappings = 0

<Plug>(markdown_extras-link-edit)

Takes the URL of the markdown link under the cursor and :edits it, as if it were a path.

Default normal-mode mappings:

  • <c-]> (jump to definition)
  • gf (go file)

<Plug>(markdown_extras-link-vsplit)

Takes the URL of the markdown link under the cursor and :vsplits it, as if it were a path.

Default normal-mode mappings:

  • gF (go file, with GUSTO)

<Plug>(markdown_extras-para-wrap)

Hard-wraps the paragraph under the cursor.

Default normal-mode mappings:

  • <cr>

markdown_extras#link#complete()

Opens FZF to choose a markdown file to link to, and inserts a link using the first line (usually the title) of the chosen file.

To define your own mapping, use <expr> like this:

inoremap <expr> <c-x><c-l> markdown_extras#link#complete()

Default insert-mode mappings:

  • <c-x><c-l> complete link

About

Extra functionality for markdown files in Vim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published