From 8eec2785215f99f563c454da23cbe663a3a54865 Mon Sep 17 00:00:00 2001 From: home Date: Sat, 30 Sep 2023 20:49:50 +0300 Subject: [PATCH] nvim : add mmr and mmc macros. --- .config/nvim/lua/key/macro.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.config/nvim/lua/key/macro.lua b/.config/nvim/lua/key/macro.lua index 9a219e8..de233d3 100644 --- a/.config/nvim/lua/key/macro.lua +++ b/.config/nvim/lua/key/macro.lua @@ -22,6 +22,8 @@ rekey_normal('mmp', 'I  ') -- insert paragraph (i rekey_visual('mmb', 's****hP') -- make bold. rekey_visual('mmi', 's**P') -- make italic. rekey_visual('mms', 's~~~~hP') -- make strikethrough. +rekey_visual('mmr', 's``P') -- wrap in `` (reference). +rekey_visual('mmc', 's``````hhP') -- wrap in 3x `` (code). -- rekey_visual('mm>', ':s/^') -- rekey_visual('mm<', '') -- rekey_normal('mm>', '')