-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcmd-edit.lua
More file actions
65 lines (65 loc) · 6 KB
/
Copy pathcmd-edit.lua
File metadata and controls
65 lines (65 loc) · 6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
return {
{ tag = "|NULL|", char = "CTRL-@", desc = "not used", },
{ tag = "|c_CTRL-A|", char = "CTRL-A", desc = "do completion on the pattern in front of the cursor and insert all matches", },
{ tag = "|c_CTRL-B|", char = "CTRL-B", desc = "cursor to begin of command-line", },
{ tag = "|c_CTRL-C|", char = "CTRL-C", desc = "same as <Esc>", },
{ tag = "|c_CTRL-D|", char = "CTRL-D", desc = "list completions that match the pattern in front of the cursor", },
{ tag = "|c_CTRL-E|", char = "CTRL-E", desc = "cursor to end of command-line", },
{ tag = "|'cedit'|", char = "CTRL-F", desc = "default value for 'cedit': opens the command-line window; otherwise not used", },
{ tag = "|c_CTRL-G|", char = "CTRL-G", desc = "next match when 'incsearch' is active", },
{ tag = "|c_<BS>|", char = "<BS>", desc = "delete the character in front of the cursor", },
{ tag = "|c_digraph|", char = "{char1} <BS> {char2}", desc = "enter digraph when 'digraph' is on", },
{ tag = "|c_CTRL-H|", char = "CTRL-H", desc = "same as <BS>", },
{ tag = "|c_<Tab>|", char = "<Tab>", desc = "if 'wildchar' is <Tab>: Do completion on the pattern in front of the cursor", },
{ tag = "|c_<S-Tab>|", char = "<S-Tab>", desc = "same as CTRL-P", },
{ tag = "|c_wildchar|", char = "'wildchar'", desc = "Do completion on the pattern in front of the cursor (default: <Tab>)", },
{ tag = "|c_CTRL-I|", char = "CTRL-I", desc = "same as <Tab>", },
{ tag = "|c_<NL>|", char = "<NL>", desc = "same as <CR>", },
{ tag = "|c_CTRL-J|", char = "CTRL-J", desc = "same as <CR>", },
{ tag = "|c_CTRL-K|", char = "CTRL-K {char1} {char2}", desc = "enter digraph", },
{ tag = "|c_CTRL-L|", char = "CTRL-L", desc = "do completion on the pattern in front of the cursor and insert the longest common part", },
{ tag = "|c_<CR>|", char = "<CR>", desc = "execute entered command", },
{ tag = "|c_CTRL-M|", char = "CTRL-M", desc = "same as <CR>", },
{ tag = "|c_CTRL-N|", char = "CTRL-N", desc = "after using 'wildchar' with multiple matches: go to next match, otherwise: recall older command-line from history.", },
{ tag = "|NULL|", char = "CTRL-O", desc = "not used", },
{ tag = "|c_CTRL-P|", char = "CTRL-P", desc = "after using 'wildchar' with multiple matches: go to previous match, otherwise: recall older command-line from history.", },
{ tag = "|c_CTRL-Q|", char = "CTRL-Q", desc = "same as CTRL-V, unless it's used for terminal control flow", },
{ tag = "|c_CTRL-R|", char = "CTRL-R {regname}", desc = "insert the contents of a register or object under the cursor as if typed", },
{ tag = "|c_CTRL-R_CTRL-R|", char = "CTRL-R CTRL-R{regname}", desc = "insert the contents of a register or object under the cursor literally", },
{ tag = "|c_CTRL-R_CTRL-O|", char = "CTRL-R CTRL-O{regname}", desc = "insert the contents of a register or object under the cursor literally", },
{ tag = "|NULL|", char = "CTRL-S", desc = "not used, or used for terminal control flow", },
{ tag = "|c_CTRL-T|", char = "CTRL-T", desc = "previous match when 'incsearch' is active", },
{ tag = "|c_CTRL-U|", char = "CTRL-U", desc = "remove all characters", },
{ tag = "|c_CTRL-V|", char = "CTRL-V", desc = "insert next non-digit literally, insert three digit decimal number as a single byte.", },
{ tag = "|c_CTRL-W|", char = "CTRL-W", desc = "delete the word in front of the cursor", },
{ tag = "|NULL|", char = "CTRL-X", desc = "not used (reserved for completion)", },
{ tag = "|NULL|", char = "CTRL-Y", desc = "copy (yank) modeless selection", },
{ tag = "|NULL|", char = "CTRL-Z", desc = "not used (reserved for suspend)", },
{ tag = "|c_<Esc>|", char = "<Esc>", desc = "abandon command-line without executing it", },
{ tag = "|c_CTRL-[|", char = "CTRL-[", desc = "same as <Esc>", },
{ tag = "|c_CTRL-\\_CTRL-N|", char = "CTRL-\\ CTRL-N", desc = "go to Normal mode, abandon command-line", },
{ tag = "|c_CTRL-\\_CTRL-G|", char = "CTRL-\\ CTRL-G", desc = "go to Normal mode, abandon command-line", },
{ tag = "|NULL|", char = "CTRL-\\ a - d", desc = "reserved for extensions", },
{ tag = "|c_CTRL-\\_e|", char = "CTRL-\\ e {expr}", desc = "replace the command line with the result of {expr}", },
{ tag = "|NULL|", char = "CTRL-\\ f - z", desc = "reserved for extensions", },
{ tag = "|NULL|", char = "CTRL-\\ others", desc = "not used", },
{ tag = "|c_CTRL-]|", char = "CTRL-]", desc = "trigger abbreviation", },
{ tag = "|c_CTRL-^|", char = "CTRL-^", desc = "toggle use of |:lmap| mappings", },
{ tag = "|c_<Del>|", char = "<Del>", desc = "delete the character under the cursor", },
{ tag = "|c_<Left>|", char = "<Left>", desc = "cursor left", },
{ tag = "|c_<S-Left>|", char = "<S-Left>", desc = "cursor one word left", },
{ tag = "|c_<C-Left>|", char = "<C-Left>", desc = "cursor one word left", },
{ tag = "|c_<Right>|", char = "<Right>", desc = "cursor right", },
{ tag = "|c_<S-Right>|", char = "<S-Right>", desc = "cursor one word right", },
{ tag = "|c_<C-Right>|", char = "<C-Right>", desc = "cursor one word right", },
{ tag = "|c_<Up>|", char = "<Up>", desc = "recall previous command-line from history that matches pattern in front of the cursor", },
{ tag = "|c_<S-Up>|", char = "<S-Up>", desc = "recall previous command-line from history", },
{ tag = "|c_<Down>|", char = "<Down>", desc = "recall next command-line from history that matches pattern in front of the cursor", },
{ tag = "|c_<S-Down>|", char = "<S-Down>", desc = "recall next command-line from history", },
{ tag = "|c_<Home>|", char = "<Home>", desc = "cursor to start of command-line", },
{ tag = "|c_<End>|", char = "<End>", desc = "cursor to end of command-line", },
{ tag = "|c_<PageDown>|", char = "<PageDown>", desc = "same as <S-Down>", },
{ tag = "|c_<PageUp>|", char = "<PageUp>", desc = "same as <S-Up>", },
{ tag = "|c_<Insert>|", char = "<Insert>", desc = "toggle insert/overstrike mode", },
{ tag = "|c_<LeftMouse>|", char = "<LeftMouse>", desc = "cursor at mouse click", },
}