nvim : improve mmc macro.

This commit is contained in:
Dmitry Voronin 2023-09-30 20:54:40 +03:00
parent 8eec278521
commit a6b0c52e9f

View file

@ -23,7 +23,7 @@ rekey_visual('mmb', 's****<esc>hP') -- make bold.
rekey_visual('mmi', 's**<esc>P') -- make italic.
rekey_visual('mms', 's~~~~<esc>hP') -- make strikethrough.
rekey_visual('mmr', 's``<esc>P') -- wrap in `` (reference).
rekey_visual('mmc', 's``````<esc>hhP') -- wrap in 3x `` (code).
rekey_visual('mmc', 's``````<esc>hhPa<cr><cr><esc><up>') -- wrap in 3x `` (code).
-- rekey_visual('mm>', ':s/^')
-- rekey_visual('mm<', '')
-- rekey_normal('mm>', '')