Nvim : Remove Macro keys for no use.
This commit is contained in:
parent
89b66858ff
commit
063766d4f8
|
@ -21,4 +21,3 @@ require("key/Common")
|
|||
require("key/Todo")
|
||||
require("key/Fold")
|
||||
require("key/Update")
|
||||
require("key/Macro")
|
||||
|
|
|
@ -1,59 +0,0 @@
|
|||
require("key/Rekey")
|
||||
|
||||
-- wraps.
|
||||
rekey_visual("<Leader>mwx", "s<delete><backspace><esc>p") -- unwrap once (select only stuff inside).
|
||||
rekey_visual("<Leader>mw\"", "s\"\"<esc>P") -- wrap in "".
|
||||
rekey_visual("<Leader>mw3\"", "s\"\"\"\"\"\"<esc>hhP") -- wrap in 3x "".
|
||||
rekey_visual("<Leader>mw'", "s''<esc>P") -- wrap in "".
|
||||
rekey_visual("<Leader>mw(", "s()<esc>P") -- wrap in ().
|
||||
rekey_visual("<Leader>mw)", "s()<esc>P") -- wrap in ().
|
||||
rekey_visual("<Leader>mw{", "s{}<esc>P") -- wrap in {}.
|
||||
rekey_visual("<Leader>mw}", "s{}<esc>P") -- wrap in {}.
|
||||
rekey_visual("<Leader>mw<", "s<><esc>P") -- wrap in {}.
|
||||
rekey_visual("<Leader>mw>", "s<><esc>P") -- wrap in {}.
|
||||
rekey_visual("<Leader>mw[", "s[]<esc>P") -- wrap in [].
|
||||
rekey_visual("<Leader>mw]", "s[]<esc>P") -- wrap in [].
|
||||
rekey_visual("<Leader>mw`", "s``<esc>P") -- wrap in ``.
|
||||
rekey_visual("<Leader>mw3`", "s``````<esc>hhP") -- wrap in 3x ``.
|
||||
rekey_visual("<Leader>mw*", "s**<esc>P") -- wrap in **.
|
||||
rekey_visual("<Leader>mw2*", "s****<esc>hP") -- wrap in 2x **.
|
||||
rekey_visual("<Leader>mw3*", "s******<esc>hhP") -- wrap in 3x **.
|
||||
rekey_visual("<Leader>mw ", "s <esc>P") -- wrap in spaces.
|
||||
|
||||
-- rewraps. <delete><backspace>
|
||||
rekey_visual("<Leader>mwrx", "s<delete><backspace><delete><backspace><esc>p") -- unwrap once (select only stuff inside).
|
||||
rekey_visual("<Leader>mwr\"", "s<delete><backspace>\"\"<esc>P") -- wrap in "".
|
||||
rekey_visual("<Leader>mwr3\"", "s<delete><backspace>\"\"\"\"\"\"<esc>hhP") -- wrap in 3x "".
|
||||
rekey_visual("<Leader>mwr'", "s<delete><backspace>''<esc>P") -- wrap in "".
|
||||
rekey_visual("<Leader>mwr(", "s<delete><backspace>()<esc>P") -- wrap in ().
|
||||
rekey_visual("<Leader>mwr)", "s<delete><backspace>()<esc>P") -- wrap in ().
|
||||
rekey_visual("<Leader>mwr{", "s<delete><backspace>{}<esc>P") -- wrap in {}.
|
||||
rekey_visual("<Leader>mwr}", "s<delete><backspace>{}<esc>P") -- wrap in {}.
|
||||
rekey_visual("<Leader>mwr<", "s<delete><backspace><><esc>P") -- wrap in {}.
|
||||
rekey_visual("<Leader>mwr>", "s<delete><backspace><><esc>P") -- wrap in {}.
|
||||
rekey_visual("<Leader>mwr[", "s<delete><backspace>[]<esc>P") -- wrap in [].
|
||||
rekey_visual("<Leader>mwr]", "s<delete><backspace>[]<esc>P") -- wrap in [].
|
||||
rekey_visual("<Leader>mwr`", "s<delete><backspace>``<esc>P") -- wrap in ``.
|
||||
rekey_visual("<Leader>mwr3`", "s<delete><backspace>``````<esc>hhP") -- wrap in 3x ``.
|
||||
rekey_visual("<Leader>mwr*", "s<delete><backspace>**<esc>P") -- wrap in **.
|
||||
rekey_visual("<Leader>mwr2*", "s<delete><backspace>****<esc>hP") -- wrap in 2x **.
|
||||
rekey_visual("<Leader>mwr3*", "s<delete><backspace>******<esc>hhP") -- wrap in 3x **.
|
||||
rekey_visual("<Leader>mwr ", "s<delete><backspace> <esc>P") -- wrap in spaces.
|
||||
|
||||
-- markdown.
|
||||
rekey_normal("<Leader>mmx", ":s/- \\[ \\]/- \\[x\\]<C-l>/<cr>") -- mark checkbox.
|
||||
rekey_normal("<Leader>mm ", ":s/- \\[x\\]/- \\[ \\]<C-l>/<cr>") -- unmark checkbox.
|
||||
rekey_visual("<Leader>mmx", ":s/- \\[ \\]/- \\[x\\]<C-l>/<cr>") -- mark checkbox (multiline select),
|
||||
rekey_visual("<Leader>mm ", ":s/- \\[x\\]/- \\[ \\]<C-l>/<cr>") -- unmark checkbox (multiline select).
|
||||
rekey_normal("<Leader>mmp", "I <esc>") -- insert paragraph (indent).
|
||||
rekey_visual("<Leader>mmb", "s****<esc>hP") -- make bold.
|
||||
rekey_visual("<Leader>mmi", "s**<esc>P") -- make italic.
|
||||
rekey_visual("<Leader>mms", "s~~~~<esc>hP") -- make strikethrough.
|
||||
rekey_visual("<Leader>mmr", "s``<esc>P") -- wrap in `` (reference).
|
||||
rekey_visual("<Leader>mmc", "s``````<esc>hhPa<cr><cr><esc><up>") -- wrap in 3x `` (code).
|
||||
|
||||
-- increment.
|
||||
rekey_normal("<Leader>mi", "<C-a>yyup<C-o>j") -- copy line and increment number under cursor.
|
||||
|
||||
-- select.
|
||||
rekey_normal("<Leader>ma", "ggVG") -- select all.
|
Reference in a new issue