home: vim: add statement objects/moves
And document it.
This commit is contained in:
parent
56554f1a7a
commit
8b84ab8625
2 changed files with 6 additions and 0 deletions
|
|
@ -4,10 +4,12 @@ local wk = require("which-key")
|
|||
local motions = {
|
||||
["]m"] = "Next method start",
|
||||
["]M"] = "Next method end",
|
||||
["]S"] = "Next statement start",
|
||||
["]]"] = "Next class start",
|
||||
["]["] = "Next class end",
|
||||
["[m"] = "Previous method start",
|
||||
["[M"] = "Previous method end",
|
||||
["[S"] = "Previous statement start",
|
||||
["[["] = "Previous class start",
|
||||
["[]"] = "Previous class end",
|
||||
}
|
||||
|
|
@ -22,6 +24,7 @@ local objects = {
|
|||
["af"] = "a function",
|
||||
["if"] = "inner function",
|
||||
["ak"] = "a comment",
|
||||
["aS"] = "a statement",
|
||||
}
|
||||
|
||||
wk.register(motions, { mode = "n" })
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue