mkdx.vim
mkdx.vim is a Markdown plugin that aims to reduce the time you spend formatting your markdown documents.
— GitHub
Not use it’s right now, I think it’s too complicated for me, maybe in the future. I switched to the simplest plugin (antonk52/markdowny.nvim) to quick formatting, etc.
Notes
When inside a link, typing a URL that starts with a ==#
== will show a list of
autocompletion based on the links of all the headers in the document.
Pressing o
O
and <cr>
in insert mode on list item will create a new
list item (bullet on numeric). To insert a new line, press <shift+enter>
.
Numbered list items will be renumbered upon indenting / un-indenting. The
algorithm for this is still pretty basic but attempts to ensure correct nesting.
This feature uses tab
and shift+tab
to indent and unindent respectively.
Core hotkeys
Wrap link::<leader>ln
Toggle checklist item::<leader>t
Toggle list item::<leader>ll
Toggle task item (support visual mode)::<leader>t
Toggling lines from / to checklist items (alternative to telekasten
<leader>zt
)
<leader>lt
Completing Checkboxes / Checklists (support visual mode, can be combined)
<leader>=
and <leader>-
Sort of +/-
Dead link detection::<leader>L
Insert kbd shortcut::<<tab>
Toggling and promoting / demoting Headers::<leader>]
and <leader>[
Toggling Quotes::<leader>'
Toggle links::<leader>ln
Toggle as bold / italic / inline-code / strike-through, where n is a number of
words
n<leader>/
→ italicn<leader>b
→ boldn<leader>`
→ inline coden<leader>s
→ strike-through
Convert CSV to table and back::<leader>,
Jump to header::<leader>j
*
Generate or update TOC (you can also use details markup)::<leader>i
Open TOC in quickfix window (you can use :cn
to navigate)::<leader>I