How do I use custom motions? #303
-
I have the following maps: wk.register({
mode = { "n", "x", "o" },
g = {
name = "+Goto",
["*"] = "Search forward under cursor (exprwise)",
["#"] = "Search backward under cursor (exprwise)",
h = { "0", "First character of line" },
s = { "^", "First non-blank character of line" },
l = { "g_", "Last character of line" },
e = { "G", "Last non-blank character of file" },
},
}) Apologize for not writing in vim api format, but you get the idea. Now, I use So how can I ensure |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I'm not 100% sure how which-key is defining these mappings. If you just do |
Beta Was this translation helpful? Give feedback.
I'm not 100% sure how which-key is defining these mappings. If you just do
vim.keymap.set("o", "ge", "G")
, it should work.