Hirohito Higashi | 73b9650 | 2025-06-28 18:18:21 +0200 | [diff] [blame] | 1 | *index.txt* For Vim version 9.1. Last change: 2025 Jun 28 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 2 | |
| 3 | |
| 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
| 5 | |
| 6 | *index* |
| 7 | This file contains a list of all commands for each mode, with a tag and a |
| 8 | short description. The lists are sorted on ASCII value. |
| 9 | |
| 10 | Tip: When looking for certain functionality, use a search command. E.g., |
| 11 | to look for deleting something, use: "/delete". |
| 12 | |
| 13 | 1. Insert mode |insert-index| |
| 14 | 2. Normal mode |normal-index| |
| 15 | 2.1. Text objects |objects| |
| 16 | 2.2. Window commands |CTRL-W| |
| 17 | 2.3. Square bracket commands |[| |
| 18 | 2.4. Commands starting with 'g' |g| |
| 19 | 2.5. Commands starting with 'z' |z| |
Bram Moolenaar | f6b4010 | 2019-02-22 15:24:03 +0100 | [diff] [blame] | 20 | 2.6. Operator-pending mode |operator-pending-index| |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 21 | 3. Visual mode |visual-index| |
| 22 | 4. Command-line editing |ex-edit-index| |
Bram Moolenaar | f6b4010 | 2019-02-22 15:24:03 +0100 | [diff] [blame] | 23 | 5. Terminal-Job mode |terminal-job-index| |
| 24 | 6. EX commands |ex-cmd-index| |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 25 | |
Bram Moolenaar | 30e9b3c | 2019-09-07 16:24:12 +0200 | [diff] [blame] | 26 | For an overview of options see |option-list|. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 27 | For an overview of built-in functions see |functions|. |
| 28 | For a list of Vim variables see |vim-variable|. |
| 29 | For a complete listing of all help items see |help-tags|. |
| 30 | |
| 31 | ============================================================================== |
| 32 | 1. Insert mode *insert-index* |
| 33 | |
Bram Moolenaar | 2a8a3ec | 2011-01-08 16:06:37 +0100 | [diff] [blame] | 34 | tag char action in Insert mode ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 35 | ----------------------------------------------------------------------- |
| 36 | |i_CTRL-@| CTRL-@ insert previously inserted text and stop |
| 37 | insert |
| 38 | |i_CTRL-A| CTRL-A insert previously inserted text |
| 39 | CTRL-B not used |i_CTRL-B-gone| |
| 40 | |i_CTRL-C| CTRL-C quit insert mode, without checking for |
| 41 | abbreviation, unless 'insertmode' set. |
| 42 | |i_CTRL-D| CTRL-D delete one shiftwidth of indent in the current |
| 43 | line |
| 44 | |i_CTRL-E| CTRL-E insert the character which is below the cursor |
| 45 | CTRL-F not used (but by default it's in 'cinkeys' to |
| 46 | re-indent the current line) |
| 47 | |i_CTRL-G_j| CTRL-G CTRL-J line down, to column where inserting started |
| 48 | |i_CTRL-G_j| CTRL-G j line down, to column where inserting started |
| 49 | |i_CTRL-G_j| CTRL-G <Down> line down, to column where inserting started |
| 50 | |i_CTRL-G_k| CTRL-G CTRL-K line up, to column where inserting started |
| 51 | |i_CTRL-G_k| CTRL-G k line up, to column where inserting started |
| 52 | |i_CTRL-G_k| CTRL-G <Up> line up, to column where inserting started |
| 53 | |i_CTRL-G_u| CTRL-G u start new undoable edit |
Bram Moolenaar | aa3b15d | 2016-04-21 08:53:19 +0200 | [diff] [blame] | 54 | |i_CTRL-G_U| CTRL-G U don't break undo with next cursor movement |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 55 | |i_<BS>| <BS> delete character before the cursor |
| 56 | |i_digraph| {char1}<BS>{char2} |
| 57 | enter digraph (only when 'digraph' option set) |
| 58 | |i_CTRL-H| CTRL-H same as <BS> |
| 59 | |i_<Tab>| <Tab> insert a <Tab> character |
| 60 | |i_CTRL-I| CTRL-I same as <Tab> |
| 61 | |i_<NL>| <NL> same as <CR> |
| 62 | |i_CTRL-J| CTRL-J same as <CR> |
| 63 | |i_CTRL-K| CTRL-K {char1} {char2} |
| 64 | enter digraph |
| 65 | |i_CTRL-L| CTRL-L when 'insertmode' set: Leave Insert mode |
| 66 | |i_<CR>| <CR> begin new line |
| 67 | |i_CTRL-M| CTRL-M same as <CR> |
| 68 | |i_CTRL-N| CTRL-N find next match for keyword in front of the |
| 69 | cursor |
| 70 | |i_CTRL-O| CTRL-O execute a single command and return to insert |
| 71 | mode |
| 72 | |i_CTRL-P| CTRL-P find previous match for keyword in front of |
| 73 | the cursor |
| 74 | |i_CTRL-Q| CTRL-Q same as CTRL-V, unless used for terminal |
| 75 | control flow |
Bram Moolenaar | 8024f93 | 2020-01-14 19:29:13 +0100 | [diff] [blame] | 76 | |i_CTRL-SHIFT-Q| CTRL-SHIFT-Q {char} |
| 77 | like CTRL-Q unless |modifyOtherKeys| is active |
Bram Moolenaar | 5be4cee | 2019-09-27 19:34:08 +0200 | [diff] [blame] | 78 | |i_CTRL-R| CTRL-R {register} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 79 | insert the contents of a register |
Bram Moolenaar | 5be4cee | 2019-09-27 19:34:08 +0200 | [diff] [blame] | 80 | |i_CTRL-R_CTRL-R| CTRL-R CTRL-R {register} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 81 | insert the contents of a register literally |
Bram Moolenaar | 5be4cee | 2019-09-27 19:34:08 +0200 | [diff] [blame] | 82 | |i_CTRL-R_CTRL-O| CTRL-R CTRL-O {register} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 83 | insert the contents of a register literally |
| 84 | and don't auto-indent |
Bram Moolenaar | 5be4cee | 2019-09-27 19:34:08 +0200 | [diff] [blame] | 85 | |i_CTRL-R_CTRL-P| CTRL-R CTRL-P {register} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 86 | insert the contents of a register literally |
| 87 | and fix indent. |
Bram Moolenaar | acc2240 | 2020-06-07 21:07:18 +0200 | [diff] [blame] | 88 | CTRL-S not used or used for terminal control flow |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 89 | |i_CTRL-T| CTRL-T insert one shiftwidth of indent in current |
| 90 | line |
| 91 | |i_CTRL-U| CTRL-U delete all entered characters in the current |
| 92 | line |
| 93 | |i_CTRL-V| CTRL-V {char} insert next non-digit literally |
Bram Moolenaar | 8024f93 | 2020-01-14 19:29:13 +0100 | [diff] [blame] | 94 | |i_CTRL-SHIFT-V| CTRL-SHIFT-V {char} |
| 95 | like CTRL-V unless |modifyOtherKeys| is active |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 96 | |i_CTRL-V_digit| CTRL-V {number} insert three digit decimal number as a single |
| 97 | byte. |
| 98 | |i_CTRL-W| CTRL-W delete word before the cursor |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 99 | |i_CTRL-X| CTRL-X {mode} enter CTRL-X sub mode, see |i_CTRL-X_index| |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 100 | |i_CTRL-Y| CTRL-Y insert the character which is above the cursor |
| 101 | |i_CTRL-Z| CTRL-Z when 'insertmode' set: suspend Vim |
| 102 | |i_<Esc>| <Esc> end insert mode (unless 'insertmode' set) |
| 103 | |i_CTRL-[| CTRL-[ same as <Esc> |
Bram Moolenaar | fa13eef | 2013-02-06 17:34:04 +0100 | [diff] [blame] | 104 | |i_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode |
| 105 | |i_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 106 | CTRL-\ a - z reserved for extensions |
| 107 | CTRL-\ others not used |
| 108 | |i_CTRL-]| CTRL-] trigger abbreviation |
| 109 | |i_CTRL-^| CTRL-^ toggle use of |:lmap| mappings |
| 110 | |i_CTRL-_| CTRL-_ When 'allowrevins' set: change language |
| 111 | (Hebrew, Farsi) {only when compiled with |
Bram Moolenaar | db84e45 | 2010-08-15 13:50:43 +0200 | [diff] [blame] | 112 | the |+rightleft| feature} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 113 | |
| 114 | <Space> to '~' not used, except '0' and '^' followed by |
| 115 | CTRL-D |
| 116 | |
| 117 | |i_0_CTRL-D| 0 CTRL-D delete all indent in the current line |
| 118 | |i_^_CTRL-D| ^ CTRL-D delete all indent in the current line, restore |
| 119 | it in the next line |
| 120 | |
| 121 | |i_<Del>| <Del> delete character under the cursor |
| 122 | |
| 123 | Meta characters (0x80 to 0xff, 128 to 255) |
| 124 | not used |
| 125 | |
| 126 | |i_<Left>| <Left> cursor one character left |
| 127 | |i_<S-Left>| <S-Left> cursor one word left |
| 128 | |i_<C-Left>| <C-Left> cursor one word left |
| 129 | |i_<Right>| <Right> cursor one character right |
| 130 | |i_<S-Right>| <S-Right> cursor one word right |
| 131 | |i_<C-Right>| <C-Right> cursor one word right |
| 132 | |i_<Up>| <Up> cursor one line up |
| 133 | |i_<S-Up>| <S-Up> same as <PageUp> |
| 134 | |i_<Down>| <Down> cursor one line down |
| 135 | |i_<S-Down>| <S-Down> same as <PageDown> |
| 136 | |i_<Home>| <Home> cursor to start of line |
| 137 | |i_<C-Home>| <C-Home> cursor to start of file |
| 138 | |i_<End>| <End> cursor past end of line |
| 139 | |i_<C-End>| <C-End> cursor past end of file |
Bram Moolenaar | 69a7cb4 | 2004-06-20 12:51:53 +0000 | [diff] [blame] | 140 | |i_<PageUp>| <PageUp> one screenful backward |
| 141 | |i_<PageDown>| <PageDown> one screenful forward |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 142 | |i_<F1>| <F1> same as <Help> |
| 143 | |i_<Help>| <Help> stop insert mode and display help window |
| 144 | |i_<Insert>| <Insert> toggle Insert/Replace mode |
| 145 | |i_<LeftMouse>| <LeftMouse> cursor at mouse click |
Bram Moolenaar | 8d9b40e | 2010-07-25 15:49:07 +0200 | [diff] [blame] | 146 | |i_<ScrollWheelDown>| <ScrollWheelDown> move window three lines down |
| 147 | |i_<S-ScrollWheelDown>| <S-ScrollWheelDown> move window one page down |
| 148 | |i_<ScrollWheelUp>| <ScrollWheelUp> move window three lines up |
| 149 | |i_<S-ScrollWheelUp>| <S-ScrollWheelUp> move window one page up |
| 150 | |i_<ScrollWheelLeft>| <ScrollWheelLeft> move window six columns left |
Bram Moolenaar | fa13eef | 2013-02-06 17:34:04 +0100 | [diff] [blame] | 151 | |i_<S-ScrollWheelLeft>| <S-ScrollWheelLeft> move window one page left |
Bram Moolenaar | 8d9b40e | 2010-07-25 15:49:07 +0200 | [diff] [blame] | 152 | |i_<ScrollWheelRight>| <ScrollWheelRight> move window six columns right |
| 153 | |i_<S-ScrollWheelRight>| <S-ScrollWheelRight> move window one page right |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 154 | |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 155 | commands in CTRL-X submode *i_CTRL-X_index* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 156 | |
| 157 | |i_CTRL-X_CTRL-D| CTRL-X CTRL-D complete defined identifiers |
| 158 | |i_CTRL-X_CTRL-E| CTRL-X CTRL-E scroll up |
| 159 | |i_CTRL-X_CTRL-F| CTRL-X CTRL-F complete file names |
| 160 | |i_CTRL-X_CTRL-I| CTRL-X CTRL-I complete identifiers |
| 161 | |i_CTRL-X_CTRL-K| CTRL-X CTRL-K complete identifiers from dictionary |
| 162 | |i_CTRL-X_CTRL-L| CTRL-X CTRL-L complete whole lines |
| 163 | |i_CTRL-X_CTRL-N| CTRL-X CTRL-N next completion |
Bram Moolenaar | 5e0d667 | 2005-09-13 21:09:24 +0000 | [diff] [blame] | 164 | |i_CTRL-X_CTRL-O| CTRL-X CTRL-O omni completion |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 165 | |i_CTRL-X_CTRL-P| CTRL-X CTRL-P previous completion |
glepnir | d5fdfa5 | 2025-06-02 19:45:41 +0200 | [diff] [blame] | 166 | |i_CTRL-X_CTRL-R| CTRL-X CTRL-R complete contents from registers |
Bram Moolenaar | 8b59de9 | 2005-08-11 19:59:29 +0000 | [diff] [blame] | 167 | |i_CTRL-X_CTRL-S| CTRL-X CTRL-S spelling suggestions |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 168 | |i_CTRL-X_CTRL-T| CTRL-X CTRL-T complete identifiers from thesaurus |
| 169 | |i_CTRL-X_CTRL-Y| CTRL-X CTRL-Y scroll down |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 170 | |i_CTRL-X_CTRL-U| CTRL-X CTRL-U complete with 'completefunc' |
| 171 | |i_CTRL-X_CTRL-V| CTRL-X CTRL-V complete like in : command line |
zeertzjq | dca29d9 | 2021-08-31 19:12:51 +0200 | [diff] [blame] | 172 | |i_CTRL-X_CTRL-Z| CTRL-X CTRL-Z stop completion, keeping the text as-is |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 173 | |i_CTRL-X_CTRL-]| CTRL-X CTRL-] complete tags |
Bram Moolenaar | 8b59de9 | 2005-08-11 19:59:29 +0000 | [diff] [blame] | 174 | |i_CTRL-X_s| CTRL-X s spelling suggestions |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 175 | |
Bram Moolenaar | f6b4010 | 2019-02-22 15:24:03 +0100 | [diff] [blame] | 176 | commands in completion mode (see |popupmenu-keys|) |
| 177 | |
| 178 | |complete_CTRL-E| CTRL-E stop completion and go back to original text |
| 179 | |complete_CTRL-Y| CTRL-Y accept selected match and stop completion |
| 180 | CTRL-L insert one character from the current match |
| 181 | <CR> insert currently selected match |
| 182 | <BS> delete one character and redo search |
| 183 | CTRL-H same as <BS> |
| 184 | <Up> select the previous match |
| 185 | <Down> select the next match |
| 186 | <PageUp> select a match several entries back |
| 187 | <PageDown> select a match several entries forward |
| 188 | other stop completion and insert the typed character |
| 189 | |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 190 | ============================================================================== |
| 191 | 2. Normal mode *normal-index* |
| 192 | |
| 193 | CHAR any non-blank character |
| 194 | WORD a sequence of non-blank characters |
| 195 | N a number entered before the command |
| 196 | {motion} a cursor movement command |
| 197 | Nmove the text that is moved over with a {motion} |
| 198 | SECTION a section that possibly starts with '}' instead of '{' |
| 199 | |
| 200 | note: 1 = cursor movement command; 2 = can be undone/redone |
| 201 | |
| 202 | tag char note action in Normal mode ~ |
| 203 | ------------------------------------------------------------------------------ |
| 204 | CTRL-@ not used |
| 205 | |CTRL-A| CTRL-A 2 add N to number at/after cursor |
| 206 | |CTRL-B| CTRL-B 1 scroll N screens Backwards |
| 207 | |CTRL-C| CTRL-C interrupt current (search) command |
| 208 | |CTRL-D| CTRL-D scroll Down N lines (default: half a screen) |
| 209 | |CTRL-E| CTRL-E scroll N lines upwards (N lines Extra) |
| 210 | |CTRL-F| CTRL-F 1 scroll N screens Forward |
| 211 | |CTRL-G| CTRL-G display current file name and position |
| 212 | |<BS>| <BS> 1 same as "h" |
| 213 | |CTRL-H| CTRL-H 1 same as "h" |
| 214 | |<Tab>| <Tab> 1 go to N newer entry in jump list |
| 215 | |CTRL-I| CTRL-I 1 same as <Tab> |
| 216 | |<NL>| <NL> 1 same as "j" |
Christian Brabandt | fbbabbc | 2024-07-07 20:30:59 +0200 | [diff] [blame] | 217 | |<S-NL>| <S-NL> 1 same as CTRL-F |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 218 | |CTRL-J| CTRL-J 1 same as "j" |
| 219 | CTRL-K not used |
| 220 | |CTRL-L| CTRL-L redraw screen |
| 221 | |<CR>| <CR> 1 cursor to the first CHAR N lines lower |
Christian Brabandt | fbbabbc | 2024-07-07 20:30:59 +0200 | [diff] [blame] | 222 | |<S-CR>| <S-CR> 1 same as CTRL-F |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 223 | |CTRL-M| CTRL-M 1 same as <CR> |
| 224 | |CTRL-N| CTRL-N 1 same as "j" |
| 225 | |CTRL-O| CTRL-O 1 go to N older entry in jump list |
| 226 | |CTRL-P| CTRL-P 1 same as "k" |
Bram Moolenaar | acc2240 | 2020-06-07 21:07:18 +0200 | [diff] [blame] | 227 | CTRL-Q not used, or used for terminal control flow |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 228 | |CTRL-R| CTRL-R 2 redo changes which were undone with 'u' |
Bram Moolenaar | acc2240 | 2020-06-07 21:07:18 +0200 | [diff] [blame] | 229 | CTRL-S not used, or used for terminal control flow |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 230 | |CTRL-T| CTRL-T jump to N older Tag in tag list |
| 231 | |CTRL-U| CTRL-U scroll N lines Upwards (default: half a |
| 232 | screen) |
| 233 | |CTRL-V| CTRL-V start blockwise Visual mode |
| 234 | |CTRL-W| CTRL-W {char} window commands, see |CTRL-W| |
| 235 | |CTRL-X| CTRL-X 2 subtract N from number at/after cursor |
| 236 | |CTRL-Y| CTRL-Y scroll N lines downwards |
| 237 | |CTRL-Z| CTRL-Z suspend program (or start new shell) |
| 238 | CTRL-[ <Esc> not used |
Bram Moolenaar | fa13eef | 2013-02-06 17:34:04 +0100 | [diff] [blame] | 239 | |CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode (no-op) |
| 240 | |CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 241 | CTRL-\ a - z reserved for extensions |
Bram Moolenaar | 938ae28 | 2023-02-20 20:44:55 +0000 | [diff] [blame] | 242 | CTRL-\ others not used |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 243 | |CTRL-]| CTRL-] :ta to ident under cursor |
| 244 | |CTRL-^| CTRL-^ edit Nth alternate file (equivalent to |
| 245 | ":e #N") |
| 246 | CTRL-_ not used |
| 247 | |
| 248 | |<Space>| <Space> 1 same as "l" |
| 249 | |!| !{motion}{filter} |
| 250 | 2 filter Nmove text through the {filter} |
| 251 | command |
| 252 | |!!| !!{filter} 2 filter N lines through the {filter} command |
Bram Moolenaar | 938ae28 | 2023-02-20 20:44:55 +0000 | [diff] [blame] | 253 | |quote| "{register} use {register} for next delete, yank or put |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 254 | ({.%#:} only work with put) |
| 255 | |#| # 1 search backward for the Nth occurrence of |
| 256 | the ident under the cursor |
| 257 | |$| $ 1 cursor to the end of Nth next line |
| 258 | |%| % 1 find the next (curly/square) bracket on |
| 259 | this line and go to its match, or go to |
| 260 | matching comment bracket, or go to matching |
| 261 | preprocessor directive. |
| 262 | |N%| {count}% 1 go to N percentage in the file |
| 263 | |&| & 2 repeat last :s |
| 264 | |'| '{a-zA-Z0-9} 1 cursor to the first CHAR on the line with |
| 265 | mark {a-zA-Z0-9} |
| 266 | |''| '' 1 cursor to the first CHAR of the line where |
| 267 | the cursor was before the latest jump. |
| 268 | |'(| '( 1 cursor to the first CHAR on the line of the |
| 269 | start of the current sentence |
| 270 | |')| ') 1 cursor to the first CHAR on the line of the |
| 271 | end of the current sentence |
| 272 | |'<| '< 1 cursor to the first CHAR of the line where |
| 273 | highlighted area starts/started in the |
| 274 | current buffer. |
| 275 | |'>| '> 1 cursor to the first CHAR of the line where |
| 276 | highlighted area ends/ended in the current |
| 277 | buffer. |
| 278 | |'[| '[ 1 cursor to the first CHAR on the line of the |
| 279 | start of last operated text or start of put |
| 280 | text |
| 281 | |']| '] 1 cursor to the first CHAR on the line of the |
| 282 | end of last operated text or end of put |
| 283 | text |
| 284 | |'{| '{ 1 cursor to the first CHAR on the line of the |
| 285 | start of the current paragraph |
| 286 | |'}| '} 1 cursor to the first CHAR on the line of the |
| 287 | end of the current paragraph |
| 288 | |(| ( 1 cursor N sentences backward |
| 289 | |)| ) 1 cursor N sentences forward |
| 290 | |star| * 1 search forward for the Nth occurrence of |
| 291 | the ident under the cursor |
| 292 | |+| + 1 same as <CR> |
Christian Brabandt | fbbabbc | 2024-07-07 20:30:59 +0200 | [diff] [blame] | 293 | |<S-Plus>| <S-+> 1 same as CTRL-F |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 294 | |,| , 1 repeat latest f, t, F or T in opposite |
| 295 | direction N times |
| 296 | |-| - 1 cursor to the first CHAR N lines higher |
Christian Brabandt | fbbabbc | 2024-07-07 20:30:59 +0200 | [diff] [blame] | 297 | |<S-Minus>| <S--> 1 same as CTRL-B |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 298 | |.| . 2 repeat last change with count replaced with |
| 299 | N |
| 300 | |/| /{pattern}<CR> 1 search forward for the Nth occurrence of |
| 301 | {pattern} |
| 302 | |/<CR>| /<CR> 1 search forward for {pattern} of last search |
Bram Moolenaar | 6ba83ba | 2022-06-12 22:15:57 +0100 | [diff] [blame] | 303 | |0| 0 1 cursor to the first char of the line |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 304 | |count| 1 prepend to command to give a count |
| 305 | |count| 2 " |
| 306 | |count| 3 " |
| 307 | |count| 4 " |
| 308 | |count| 5 " |
| 309 | |count| 6 " |
| 310 | |count| 7 " |
| 311 | |count| 8 " |
| 312 | |count| 9 " |
| 313 | |:| : 1 start entering an Ex command |
| 314 | |N:| {count}: start entering an Ex command with range |
| 315 | from current line to N-1 lines down |
| 316 | |;| ; 1 repeat latest f, t, F or T N times |
| 317 | |<| <{motion} 2 shift Nmove lines one 'shiftwidth' |
| 318 | leftwards |
| 319 | |<<| << 2 shift N lines one 'shiftwidth' leftwards |
| 320 | |=| ={motion} 2 filter Nmove lines through "indent" |
| 321 | |==| == 2 filter N lines through "indent" |
| 322 | |>| >{motion} 2 shift Nmove lines one 'shiftwidth' |
| 323 | rightwards |
| 324 | |>>| >> 2 shift N lines one 'shiftwidth' rightwards |
| 325 | |?| ?{pattern}<CR> 1 search backward for the Nth previous |
| 326 | occurrence of {pattern} |
| 327 | |?<CR>| ?<CR> 1 search backward for {pattern} of last search |
| 328 | |@| @{a-z} 2 execute the contents of register {a-z} |
| 329 | N times |
| 330 | |@:| @: repeat the previous ":" command N times |
| 331 | |@@| @@ 2 repeat the previous @{a-z} N times |
| 332 | |A| A 2 append text after the end of the line N times |
| 333 | |B| B 1 cursor N WORDS backward |
| 334 | |C| ["x]C 2 change from the cursor position to the end |
| 335 | of the line, and N-1 more lines [into |
Bram Moolenaar | 9423749 | 2017-04-23 18:40:21 +0200 | [diff] [blame] | 336 | register x]; synonym for "c$" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 337 | |D| ["x]D 2 delete the characters under the cursor |
| 338 | until the end of the line and N-1 more |
Bram Moolenaar | 9423749 | 2017-04-23 18:40:21 +0200 | [diff] [blame] | 339 | lines [into register x]; synonym for "d$" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 340 | |E| E 1 cursor forward to the end of WORD N |
| 341 | |F| F{char} 1 cursor to the Nth occurrence of {char} to |
| 342 | the left |
| 343 | |G| G 1 cursor to line N, default last line |
| 344 | |H| H 1 cursor to line N from top of screen |
| 345 | |I| I 2 insert text before the first CHAR on the |
| 346 | line N times |
| 347 | |J| J 2 Join N lines; default is 2 |
| 348 | |K| K lookup Keyword under the cursor with |
| 349 | 'keywordprg' |
| 350 | |L| L 1 cursor to line N from bottom of screen |
| 351 | |M| M 1 cursor to middle line of screen |
| 352 | |N| N 1 repeat the latest '/' or '?' N times in |
| 353 | opposite direction |
| 354 | |O| O 2 begin a new line above the cursor and |
| 355 | insert text, repeat N times |
Bram Moolenaar | 9423749 | 2017-04-23 18:40:21 +0200 | [diff] [blame] | 356 | |P| ["x]P 2 put the text [from register x] before the |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 357 | cursor N times |
| 358 | |Q| Q switch to "Ex" mode |
| 359 | |R| R 2 enter replace mode: overtype existing |
| 360 | characters, repeat the entered text N-1 |
| 361 | times |
Bram Moolenaar | 9423749 | 2017-04-23 18:40:21 +0200 | [diff] [blame] | 362 | |S| ["x]S 2 delete N lines [into register x] and start |
Bram Moolenaar | 293ee4d | 2004-12-09 21:34:53 +0000 | [diff] [blame] | 363 | insert; synonym for "cc". |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 364 | |T| T{char} 1 cursor till after Nth occurrence of {char} |
| 365 | to the left |
| 366 | |U| U 2 undo all latest changes on one line |
| 367 | |V| V start linewise Visual mode |
| 368 | |W| W 1 cursor N WORDS forward |
| 369 | |X| ["x]X 2 delete N characters before the cursor [into |
Bram Moolenaar | 9423749 | 2017-04-23 18:40:21 +0200 | [diff] [blame] | 370 | register x] |
| 371 | |Y| ["x]Y yank N lines [into register x]; synonym for |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 372 | "yy" |
Bram Moolenaar | 47e1395 | 2020-05-12 22:49:12 +0200 | [diff] [blame] | 373 | |ZZ| ZZ write if buffer changed and close window |
| 374 | |ZQ| ZQ close window without writing |
Bram Moolenaar | c6039d8 | 2005-12-02 00:44:04 +0000 | [diff] [blame] | 375 | |[| [{char} square bracket command (see |[| below) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 376 | \ not used |
Bram Moolenaar | c6039d8 | 2005-12-02 00:44:04 +0000 | [diff] [blame] | 377 | |]| ]{char} square bracket command (see |]| below) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 378 | |^| ^ 1 cursor to the first CHAR of the line |
| 379 | |_| _ 1 cursor to the first CHAR N - 1 lines lower |
| 380 | |`| `{a-zA-Z0-9} 1 cursor to the mark {a-zA-Z0-9} |
| 381 | |`(| `( 1 cursor to the start of the current sentence |
| 382 | |`)| `) 1 cursor to the end of the current sentence |
| 383 | |`<| `< 1 cursor to the start of the highlighted area |
| 384 | |`>| `> 1 cursor to the end of the highlighted area |
| 385 | |`[| `[ 1 cursor to the start of last operated text |
| 386 | or start of putted text |
| 387 | |`]| `] 1 cursor to the end of last operated text or |
| 388 | end of putted text |
| 389 | |``| `` 1 cursor to the position before latest jump |
| 390 | |`{| `{ 1 cursor to the start of the current paragraph |
| 391 | |`}| `} 1 cursor to the end of the current paragraph |
| 392 | |a| a 2 append text after the cursor N times |
| 393 | |b| b 1 cursor N words backward |
Bram Moolenaar | 9423749 | 2017-04-23 18:40:21 +0200 | [diff] [blame] | 394 | |c| ["x]c{motion} 2 delete Nmove text [into register x] and |
| 395 | start insert |
| 396 | |cc| ["x]cc 2 delete N lines [into register x] and start |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 397 | insert |
Bram Moolenaar | 9423749 | 2017-04-23 18:40:21 +0200 | [diff] [blame] | 398 | |d| ["x]d{motion} 2 delete Nmove text [into register x] |
| 399 | |dd| ["x]dd 2 delete N lines [into register x] |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 400 | |do| do 2 same as ":diffget" |
| 401 | |dp| dp 2 same as ":diffput" |
| 402 | |e| e 1 cursor forward to the end of word N |
| 403 | |f| f{char} 1 cursor to Nth occurrence of {char} to the |
| 404 | right |
Bram Moolenaar | c6039d8 | 2005-12-02 00:44:04 +0000 | [diff] [blame] | 405 | |g| g{char} extended commands, see |g| below |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 406 | |h| h 1 cursor N chars to the left |
| 407 | |i| i 2 insert text before the cursor N times |
| 408 | |j| j 1 cursor N lines downward |
| 409 | |k| k 1 cursor N lines upward |
| 410 | |l| l 1 cursor N chars to the right |
| 411 | |m| m{A-Za-z} set mark {A-Za-z} at cursor position |
| 412 | |n| n 1 repeat the latest '/' or '?' N times |
| 413 | |o| o 2 begin a new line below the cursor and |
| 414 | insert text, repeat N times |
| 415 | |p| ["x]p 2 put the text [from register x] after the |
| 416 | cursor N times |
| 417 | |q| q{0-9a-zA-Z"} record typed characters into named register |
| 418 | {0-9a-zA-Z"} (uppercase to append) |
| 419 | |q| q (while recording) stops recording |
| 420 | |q:| q: edit : command-line in command-line window |
| 421 | |q/| q/ edit / command-line in command-line window |
| 422 | |q?| q? edit ? command-line in command-line window |
| 423 | |r| r{char} 2 replace N chars with {char} |
| 424 | |s| ["x]s 2 (substitute) delete N characters [into |
Bram Moolenaar | 9423749 | 2017-04-23 18:40:21 +0200 | [diff] [blame] | 425 | register x] and start insert |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 426 | |t| t{char} 1 cursor till before Nth occurrence of {char} |
| 427 | to the right |
| 428 | |u| u 2 undo changes |
| 429 | |v| v start characterwise Visual mode |
| 430 | |w| w 1 cursor N words forward |
| 431 | |x| ["x]x 2 delete N characters under and after the |
Bram Moolenaar | 9423749 | 2017-04-23 18:40:21 +0200 | [diff] [blame] | 432 | cursor [into register x] |
| 433 | |y| ["x]y{motion} yank Nmove text [into register x] |
| 434 | |yy| ["x]yy yank N lines [into register x] |
Bram Moolenaar | c6039d8 | 2005-12-02 00:44:04 +0000 | [diff] [blame] | 435 | |z| z{char} commands starting with 'z', see |z| below |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 436 | |{| { 1 cursor N paragraphs backward |
| 437 | |bar| | 1 cursor to column N |
| 438 | |}| } 1 cursor N paragraphs forward |
| 439 | |~| ~ 2 'tildeop' off: switch case of N characters |
| 440 | under cursor and move the cursor N |
| 441 | characters to the right |
| 442 | |~| ~{motion} 'tildeop' on: switch case of Nmove text |
| 443 | |<C-End>| <C-End> 1 same as "G" |
| 444 | |<C-Home>| <C-Home> 1 same as "gg" |
| 445 | |<C-Left>| <C-Left> 1 same as "b" |
| 446 | |<C-LeftMouse>| <C-LeftMouse> ":ta" to the keyword at the mouse click |
| 447 | |<C-Right>| <C-Right> 1 same as "w" |
| 448 | |<C-RightMouse>| <C-RightMouse> same as "CTRL-T" |
Bram Moolenaar | 62a2325 | 2020-08-09 14:04:42 +0200 | [diff] [blame] | 449 | |<C-Tab>| <C-Tab> same as "g<Tab>" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 450 | |<Del>| ["x]<Del> 2 same as "x" |
| 451 | |N<Del>| {count}<Del> remove the last digit from {count} |
| 452 | |<Down>| <Down> 1 same as "j" |
| 453 | |<End>| <End> 1 same as "$" |
| 454 | |<F1>| <F1> same as <Help> |
| 455 | |<Help>| <Help> open a help window |
| 456 | |<Home>| <Home> 1 same as "0" |
| 457 | |<Insert>| <Insert> 2 same as "i" |
| 458 | |<Left>| <Left> 1 same as "h" |
| 459 | |<LeftMouse>| <LeftMouse> 1 move cursor to the mouse click position |
Bram Moolenaar | fa13eef | 2013-02-06 17:34:04 +0100 | [diff] [blame] | 460 | |<MiddleMouse>| <MiddleMouse> 2 same as "gP" at the mouse click position |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 461 | |<PageDown>| <PageDown> same as CTRL-F |
| 462 | |<PageUp>| <PageUp> same as CTRL-B |
| 463 | |<Right>| <Right> 1 same as "l" |
| 464 | |<RightMouse>| <RightMouse> start Visual mode, move cursor to the mouse |
| 465 | click position |
| 466 | |<S-Down>| <S-Down> 1 same as CTRL-F |
| 467 | |<S-Left>| <S-Left> 1 same as "b" |
| 468 | |<S-LeftMouse>| <S-LeftMouse> same as "*" at the mouse click position |
| 469 | |<S-Right>| <S-Right> 1 same as "w" |
| 470 | |<S-RightMouse>| <S-RightMouse> same as "#" at the mouse click position |
| 471 | |<S-Up>| <S-Up> 1 same as CTRL-B |
| 472 | |<Undo>| <Undo> 2 same as "u" |
| 473 | |<Up>| <Up> 1 same as "k" |
Bram Moolenaar | 8d9b40e | 2010-07-25 15:49:07 +0200 | [diff] [blame] | 474 | |<ScrollWheelDown>| <ScrollWheelDown> move window three lines down |
| 475 | |<S-ScrollWheelDown>| <S-ScrollWheelDown> move window one page down |
| 476 | |<ScrollWheelUp>| <ScrollWheelUp> move window three lines up |
| 477 | |<S-ScrollWheelUp>| <S-ScrollWheelUp> move window one page up |
| 478 | |<ScrollWheelLeft>| <ScrollWheelLeft> move window six columns left |
| 479 | |<S-ScrollWheelLeft>| <S-ScrollWheelLeft> move window one page left |
| 480 | |<ScrollWheelRight>| <ScrollWheelRight> move window six columns right |
| 481 | |<S-ScrollWheelRight>| <S-ScrollWheelRight> move window one page right |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 482 | |
| 483 | ============================================================================== |
| 484 | 2.1 Text objects *objects* |
| 485 | |
| 486 | These can be used after an operator or in Visual mode to select an object. |
| 487 | |
Bram Moolenaar | 2a8a3ec | 2011-01-08 16:06:37 +0100 | [diff] [blame] | 488 | tag command action in op-pending and Visual mode ~ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 489 | ------------------------------------------------------------------------------ |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 490 | |v_aquote| a" double quoted string |
| 491 | |v_a'| a' single quoted string |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 492 | |v_a(| a( same as ab |
| 493 | |v_a)| a) same as ab |
| 494 | |v_a<| a< "a <>" from '<' to the matching '>' |
| 495 | |v_a>| a> same as a< |
| 496 | |v_aB| aB "a Block" from "[{" to "]}" (with brackets) |
| 497 | |v_aW| aW "a WORD" (with white space) |
| 498 | |v_a[| a[ "a []" from '[' to the matching ']' |
| 499 | |v_a]| a] same as a[ |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 500 | |v_a`| a` string in backticks |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 501 | |v_ab| ab "a block" from "[(" to "])" (with braces) |
| 502 | |v_ap| ap "a paragraph" (with white space) |
| 503 | |v_as| as "a sentence" (with white space) |
Bram Moolenaar | f233048 | 2008-06-24 20:19:36 +0000 | [diff] [blame] | 504 | |v_at| at "a tag block" (with white space) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 505 | |v_aw| aw "a word" (with white space) |
| 506 | |v_a{| a{ same as aB |
| 507 | |v_a}| a} same as aB |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 508 | |v_iquote| i" double quoted string without the quotes |
| 509 | |v_i'| i' single quoted string without the quotes |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 510 | |v_i(| i( same as ib |
| 511 | |v_i)| i) same as ib |
| 512 | |v_i<| i< "inner <>" from '<' to the matching '>' |
| 513 | |v_i>| i> same as i< |
| 514 | |v_iB| iB "inner Block" from "[{" and "]}" |
| 515 | |v_iW| iW "inner WORD" |
| 516 | |v_i[| i[ "inner []" from '[' to the matching ']' |
| 517 | |v_i]| i] same as i[ |
Bram Moolenaar | cfbc5ee | 2004-07-02 15:38:35 +0000 | [diff] [blame] | 518 | |v_i`| i` string in backticks without the backticks |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 519 | |v_ib| ib "inner block" from "[(" to "])" |
| 520 | |v_ip| ip "inner paragraph" |
| 521 | |v_is| is "inner sentence" |
Bram Moolenaar | f233048 | 2008-06-24 20:19:36 +0000 | [diff] [blame] | 522 | |v_it| it "inner tag block" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 523 | |v_iw| iw "inner word" |
| 524 | |v_i{| i{ same as iB |
| 525 | |v_i}| i} same as iB |
| 526 | |
| 527 | ============================================================================== |
| 528 | 2.2 Window commands *CTRL-W* |
| 529 | |
| 530 | tag command action in Normal mode ~ |
| 531 | ------------------------------------------------------------------------------ |
| 532 | |CTRL-W_CTRL-B| CTRL-W CTRL-B same as "CTRL-W b" |
| 533 | |CTRL-W_CTRL-C| CTRL-W CTRL-C same as "CTRL-W c" |
| 534 | |CTRL-W_CTRL-D| CTRL-W CTRL-D same as "CTRL-W d" |
| 535 | |CTRL-W_CTRL-F| CTRL-W CTRL-F same as "CTRL-W f" |
| 536 | CTRL-W CTRL-G same as "CTRL-W g .." |
| 537 | |CTRL-W_CTRL-H| CTRL-W CTRL-H same as "CTRL-W h" |
| 538 | |CTRL-W_CTRL-I| CTRL-W CTRL-I same as "CTRL-W i" |
| 539 | |CTRL-W_CTRL-J| CTRL-W CTRL-J same as "CTRL-W j" |
| 540 | |CTRL-W_CTRL-K| CTRL-W CTRL-K same as "CTRL-W k" |
| 541 | |CTRL-W_CTRL-L| CTRL-W CTRL-L same as "CTRL-W l" |
| 542 | |CTRL-W_CTRL-N| CTRL-W CTRL-N same as "CTRL-W n" |
| 543 | |CTRL-W_CTRL-O| CTRL-W CTRL-O same as "CTRL-W o" |
| 544 | |CTRL-W_CTRL-P| CTRL-W CTRL-P same as "CTRL-W p" |
| 545 | |CTRL-W_CTRL-Q| CTRL-W CTRL-Q same as "CTRL-W q" |
| 546 | |CTRL-W_CTRL-R| CTRL-W CTRL-R same as "CTRL-W r" |
| 547 | |CTRL-W_CTRL-S| CTRL-W CTRL-S same as "CTRL-W s" |
| 548 | |CTRL-W_CTRL-T| CTRL-W CTRL-T same as "CTRL-W t" |
| 549 | |CTRL-W_CTRL-V| CTRL-W CTRL-V same as "CTRL-W v" |
| 550 | |CTRL-W_CTRL-W| CTRL-W CTRL-W same as "CTRL-W w" |
| 551 | |CTRL-W_CTRL-X| CTRL-W CTRL-X same as "CTRL-W x" |
| 552 | |CTRL-W_CTRL-Z| CTRL-W CTRL-Z same as "CTRL-W z" |
| 553 | |CTRL-W_CTRL-]| CTRL-W CTRL-] same as "CTRL-W ]" |
| 554 | |CTRL-W_CTRL-^| CTRL-W CTRL-^ same as "CTRL-W ^" |
| 555 | |CTRL-W_CTRL-_| CTRL-W CTRL-_ same as "CTRL-W _" |
| 556 | |CTRL-W_+| CTRL-W + increase current window height N lines |
| 557 | |CTRL-W_-| CTRL-W - decrease current window height N lines |
Bram Moolenaar | b6e0ec6 | 2017-07-23 22:12:20 +0200 | [diff] [blame] | 558 | |CTRL-W_:| CTRL-W : same as |:|, edit a command line |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 559 | |CTRL-W_<| CTRL-W < decrease current window width N columns |
Bram Moolenaar | 8f3f58f | 2010-01-06 20:52:26 +0100 | [diff] [blame] | 560 | |CTRL-W_=| CTRL-W = make all windows the same height & width |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 561 | |CTRL-W_>| CTRL-W > increase current window width N columns |
| 562 | |CTRL-W_H| CTRL-W H move current window to the far left |
| 563 | |CTRL-W_J| CTRL-W J move current window to the very bottom |
| 564 | |CTRL-W_K| CTRL-W K move current window to the very top |
| 565 | |CTRL-W_L| CTRL-W L move current window to the far right |
| 566 | |CTRL-W_P| CTRL-W P go to preview window |
| 567 | |CTRL-W_R| CTRL-W R rotate windows upwards N times |
| 568 | |CTRL-W_S| CTRL-W S same as "CTRL-W s" |
Bram Moolenaar | 4c3f536 | 2006-04-11 21:38:50 +0000 | [diff] [blame] | 569 | |CTRL-W_T| CTRL-W T move current window to a new tab page |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 570 | |CTRL-W_W| CTRL-W W go to N previous window (wrap around) |
| 571 | |CTRL-W_]| CTRL-W ] split window and jump to tag under cursor |
| 572 | |CTRL-W_^| CTRL-W ^ split current window and edit alternate |
| 573 | file N |
| 574 | |CTRL-W__| CTRL-W _ set current window height to N (default: |
| 575 | very high) |
| 576 | |CTRL-W_b| CTRL-W b go to bottom window |
| 577 | |CTRL-W_c| CTRL-W c close current window (like |:close|) |
| 578 | |CTRL-W_d| CTRL-W d split window and jump to definition under |
| 579 | the cursor |
| 580 | |CTRL-W_f| CTRL-W f split window and edit file name under the |
| 581 | cursor |
Bram Moolenaar | d1f56e6 | 2006-02-22 21:25:37 +0000 | [diff] [blame] | 582 | |CTRL-W_F| CTRL-W F split window and edit file name under the |
| 583 | cursor and jump to the line number |
| 584 | following the file name. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 585 | |CTRL-W_g_CTRL-]| CTRL-W g CTRL-] split window and do |:tjump| to tag under |
| 586 | cursor |
| 587 | |CTRL-W_g]| CTRL-W g ] split window and do |:tselect| for tag |
| 588 | under cursor |
| 589 | |CTRL-W_g}| CTRL-W g } do a |:ptjump| to the tag under the cursor |
Bram Moolenaar | 8dff818 | 2006-04-06 20:18:50 +0000 | [diff] [blame] | 590 | |CTRL-W_gf| CTRL-W g f edit file name under the cursor in a new |
| 591 | tab page |
Bram Moolenaar | 57657d8 | 2006-04-21 22:12:41 +0000 | [diff] [blame] | 592 | |CTRL-W_gF| CTRL-W g F edit file name under the cursor in a new |
| 593 | tab page and jump to the line number |
| 594 | following the file name. |
Bram Moolenaar | 2696761 | 2019-03-17 17:13:16 +0100 | [diff] [blame] | 595 | |CTRL-W_gt| CTRL-W g t same as `gt`: go to next tab page |
| 596 | |CTRL-W_gT| CTRL-W g T same as `gT`: go to previous tab page |
Bram Moolenaar | 62a2325 | 2020-08-09 14:04:42 +0200 | [diff] [blame] | 597 | |CTRL-W_g<Tab>| CTRL-W g <Tab> same as |g<Tab>|: go to last accessed tab |
| 598 | page. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 599 | |CTRL-W_h| CTRL-W h go to Nth left window (stop at first window) |
| 600 | |CTRL-W_i| CTRL-W i split window and jump to declaration of |
| 601 | identifier under the cursor |
| 602 | |CTRL-W_j| CTRL-W j go N windows down (stop at last window) |
| 603 | |CTRL-W_k| CTRL-W k go N windows up (stop at first window) |
| 604 | |CTRL-W_l| CTRL-W l go to Nth right window (stop at last window) |
| 605 | |CTRL-W_n| CTRL-W n open new window, N lines high |
| 606 | |CTRL-W_o| CTRL-W o close all but current window (like |:only|) |
| 607 | |CTRL-W_p| CTRL-W p go to previous (last accessed) window |
| 608 | |CTRL-W_q| CTRL-W q quit current window (like |:quit|) |
| 609 | |CTRL-W_r| CTRL-W r rotate windows downwards N times |
| 610 | |CTRL-W_s| CTRL-W s split current window in two parts, new |
| 611 | window N lines high |
| 612 | |CTRL-W_t| CTRL-W t go to top window |
| 613 | |CTRL-W_v| CTRL-W v split current window vertically, new window |
Bram Moolenaar | 8f3f58f | 2010-01-06 20:52:26 +0100 | [diff] [blame] | 614 | N columns wide |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 615 | |CTRL-W_w| CTRL-W w go to N next window (wrap around) |
| 616 | |CTRL-W_x| CTRL-W x exchange current window with window N |
| 617 | (default: next window) |
| 618 | |CTRL-W_z| CTRL-W z close preview window |
| 619 | |CTRL-W_bar| CTRL-W | set window width to N columns |
| 620 | |CTRL-W_}| CTRL-W } show tag under cursor in preview window |
| 621 | |CTRL-W_<Down>| CTRL-W <Down> same as "CTRL-W j" |
| 622 | |CTRL-W_<Up>| CTRL-W <Up> same as "CTRL-W k" |
| 623 | |CTRL-W_<Left>| CTRL-W <Left> same as "CTRL-W h" |
| 624 | |CTRL-W_<Right>| CTRL-W <Right> same as "CTRL-W l" |
| 625 | |
| 626 | ============================================================================== |
| 627 | 2.3 Square bracket commands *[* *]* |
| 628 | |
| 629 | tag char note action in Normal mode ~ |
| 630 | ------------------------------------------------------------------------------ |
| 631 | |[_CTRL-D| [ CTRL-D jump to first #define found in current and |
| 632 | included files matching the word under the |
| 633 | cursor, start searching at beginning of |
| 634 | current file |
| 635 | |[_CTRL-I| [ CTRL-I jump to first line in current and included |
| 636 | files that contains the word under the |
| 637 | cursor, start searching at beginning of |
| 638 | current file |
| 639 | |[#| [# 1 cursor to N previous unmatched #if, #else |
| 640 | or #ifdef |
| 641 | |['| [' 1 cursor to previous lowercase mark, on first |
| 642 | non-blank |
| 643 | |[(| [( 1 cursor N times back to unmatched '(' |
| 644 | |[star| [* 1 same as "[/" |
| 645 | |[`| [` 1 cursor to previous lowercase mark |
| 646 | |[/| [/ 1 cursor to N previous start of a C comment |
| 647 | |[D| [D list all defines found in current and |
| 648 | included files matching the word under the |
| 649 | cursor, start searching at beginning of |
| 650 | current file |
| 651 | |[I| [I list all lines found in current and |
| 652 | included files that contain the word under |
| 653 | the cursor, start searching at beginning of |
| 654 | current file |
| 655 | |[P| [P 2 same as "[p" |
| 656 | |[[| [[ 1 cursor N sections backward |
| 657 | |[]| [] 1 cursor N SECTIONS backward |
| 658 | |[c| [c 1 cursor N times backwards to start of change |
| 659 | |[d| [d show first #define found in current and |
| 660 | included files matching the word under the |
| 661 | cursor, start searching at beginning of |
| 662 | current file |
| 663 | |[f| [f same as "gf" |
| 664 | |[i| [i show first line found in current and |
| 665 | included files that contains the word under |
| 666 | the cursor, start searching at beginning of |
| 667 | current file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 668 | |[m| [m 1 cursor N times back to start of member |
| 669 | function |
Bram Moolenaar | dd2a3cd | 2007-05-05 17:10:09 +0000 | [diff] [blame] | 670 | |[p| [p 2 like "P", but adjust indent to current line |
| 671 | |[s| [s 1 move to the previous misspelled word |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 672 | |[z| [z 1 move to start of open fold |
| 673 | |[{| [{ 1 cursor N times back to unmatched '{' |
Bram Moolenaar | fa13eef | 2013-02-06 17:34:04 +0100 | [diff] [blame] | 674 | |[<MiddleMouse>| [<MiddleMouse> 2 same as "[p" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 675 | |
| 676 | |]_CTRL-D| ] CTRL-D jump to first #define found in current and |
| 677 | included files matching the word under the |
| 678 | cursor, start searching at cursor position |
| 679 | |]_CTRL-I| ] CTRL-I jump to first line in current and included |
| 680 | files that contains the word under the |
| 681 | cursor, start searching at cursor position |
| 682 | |]#| ]# 1 cursor to N next unmatched #endif or #else |
| 683 | |]'| ]' 1 cursor to next lowercase mark, on first |
| 684 | non-blank |
| 685 | |])| ]) 1 cursor N times forward to unmatched ')' |
| 686 | |]star| ]* 1 same as "]/" |
| 687 | |]`| ]` 1 cursor to next lowercase mark |
| 688 | |]/| ]/ 1 cursor to N next end of a C comment |
| 689 | |]D| ]D list all #defines found in current and |
| 690 | included files matching the word under the |
| 691 | cursor, start searching at cursor position |
| 692 | |]I| ]I list all lines found in current and |
| 693 | included files that contain the word under |
| 694 | the cursor, start searching at cursor |
| 695 | position |
| 696 | |]P| ]P 2 same as "[p" |
| 697 | |][| ][ 1 cursor N SECTIONS forward |
| 698 | |]]| ]] 1 cursor N sections forward |
| 699 | |]c| ]c 1 cursor N times forward to start of change |
| 700 | |]d| ]d show first #define found in current and |
| 701 | included files matching the word under the |
| 702 | cursor, start searching at cursor position |
| 703 | |]f| ]f same as "gf" |
| 704 | |]i| ]i show first line found in current and |
| 705 | included files that contains the word under |
| 706 | the cursor, start searching at cursor |
| 707 | position |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 708 | |]m| ]m 1 cursor N times forward to end of member |
| 709 | function |
Bram Moolenaar | dd2a3cd | 2007-05-05 17:10:09 +0000 | [diff] [blame] | 710 | |]p| ]p 2 like "p", but adjust indent to current line |
| 711 | |]s| ]s 1 move to next misspelled word |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 712 | |]z| ]z 1 move to end of open fold |
| 713 | |]}| ]} 1 cursor N times forward to unmatched '}' |
Bram Moolenaar | fa13eef | 2013-02-06 17:34:04 +0100 | [diff] [blame] | 714 | |]<MiddleMouse>| ]<MiddleMouse> 2 same as "]p" |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 715 | |
| 716 | ============================================================================== |
| 717 | 2.4 Commands starting with 'g' *g* |
| 718 | |
| 719 | tag char note action in Normal mode ~ |
| 720 | ------------------------------------------------------------------------------ |
| 721 | |g_CTRL-A| g CTRL-A only when compiled with MEM_PROFILE |
| 722 | defined: dump a memory profile |
| 723 | |g_CTRL-G| g CTRL-G show information about current cursor |
| 724 | position |
| 725 | |g_CTRL-H| g CTRL-H start Select block mode |
| 726 | |g_CTRL-]| g CTRL-] |:tjump| to the tag under the cursor |
| 727 | |g#| g# 1 like "#", but without using "\<" and "\>" |
| 728 | |g$| g$ 1 when 'wrap' off go to rightmost character of |
| 729 | the current line that is on the screen; |
| 730 | when 'wrap' on go to the rightmost character |
| 731 | of the current screen line |
| 732 | |g&| g& 2 repeat last ":s" on all lines |
| 733 | |g'| g'{mark} 1 like |'| but without changing the jumplist |
| 734 | |g`| g`{mark} 1 like |`| but without changing the jumplist |
| 735 | |gstar| g* 1 like "*", but without using "\<" and "\>" |
Bram Moolenaar | 2b8388b | 2015-02-28 13:11:45 +0100 | [diff] [blame] | 736 | |g+| g+ go to newer text state N times |
| 737 | |g,| g, 1 go to N newer position in change list |
| 738 | |g-| g- go to older text state N times |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 739 | |g0| g0 1 when 'wrap' off go to leftmost character of |
| 740 | the current line that is on the screen; |
| 741 | when 'wrap' on go to the leftmost character |
| 742 | of the current screen line |
| 743 | |g8| g8 print hex value of bytes used in UTF-8 |
| 744 | character under the cursor |
Bram Moolenaar | 2b8388b | 2015-02-28 13:11:45 +0100 | [diff] [blame] | 745 | |g;| g; 1 go to N older position in change list |
Bram Moolenaar | cfc7d63 | 2005-07-28 22:28:16 +0000 | [diff] [blame] | 746 | |g<| g< display previous command output |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 747 | |g?| g? 2 Rot13 encoding operator |
| 748 | |g?g?| g?? 2 Rot13 encode current line |
| 749 | |g?g?| g?g? 2 Rot13 encode current line |
| 750 | |gD| gD 1 go to definition of word under the cursor |
| 751 | in current file |
| 752 | |gE| gE 1 go backwards to the end of the previous |
| 753 | WORD |
| 754 | |gH| gH start Select line mode |
| 755 | |gI| gI 2 like "I", but always start in column 1 |
| 756 | |gJ| gJ 2 join lines without inserting space |
Bram Moolenaar | 6c35bea | 2012-07-25 17:49:10 +0200 | [diff] [blame] | 757 | |gN| gN 1,2 find the previous match with the last used |
| 758 | search pattern and Visually select it |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 759 | |gP| ["x]gP 2 put the text [from register x] before the |
| 760 | cursor N times, leave the cursor after it |
zeertzjq | d9be94c | 2024-07-14 10:20:20 +0200 | [diff] [blame] | 761 | |gQ| gQ switch to "Ex" mode with Vim editing |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 762 | |gR| gR 2 enter Virtual Replace mode |
Bram Moolenaar | 531da59 | 2013-05-06 05:58:55 +0200 | [diff] [blame] | 763 | |gT| gT go to the previous tab page |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 764 | |gU| gU{motion} 2 make Nmove text uppercase |
| 765 | |gV| gV don't reselect the previous Visual area |
| 766 | when executing a mapping or menu in Select |
| 767 | mode |
| 768 | |g]| g] :tselect on the tag under the cursor |
| 769 | |g^| g^ 1 when 'wrap' off go to leftmost non-white |
| 770 | character of the current line that is on |
| 771 | the screen; when 'wrap' on go to the |
| 772 | leftmost non-white character of the current |
| 773 | screen line |
Bram Moolenaar | 2b8388b | 2015-02-28 13:11:45 +0100 | [diff] [blame] | 774 | |g_| g_ 1 cursor to the last CHAR N - 1 lines lower |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 775 | |ga| ga print ascii value of character under the |
| 776 | cursor |
| 777 | |gd| gd 1 go to definition of word under the cursor |
| 778 | in current function |
| 779 | |ge| ge 1 go backwards to the end of the previous |
| 780 | word |
| 781 | |gf| gf start editing the file whose name is under |
| 782 | the cursor |
Bram Moolenaar | d1f56e6 | 2006-02-22 21:25:37 +0000 | [diff] [blame] | 783 | |gF| gF start editing the file whose name is under |
| 784 | the cursor and jump to the line number |
| 785 | following the filename. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 786 | |gg| gg 1 cursor to line N, default first line |
| 787 | |gh| gh start Select mode |
| 788 | |gi| gi 2 like "i", but first move to the |'^| mark |
| 789 | |gj| gj 1 like "j", but when 'wrap' on go N screen |
| 790 | lines down |
| 791 | |gk| gk 1 like "k", but when 'wrap' on go N screen |
| 792 | lines up |
| 793 | |gm| gm 1 go to character at middle of the screenline |
Bram Moolenaar | 8b530c1 | 2019-10-28 02:13:05 +0100 | [diff] [blame] | 794 | |gM| gM 1 go to character at middle of the text line |
Bram Moolenaar | 4f4d51a | 2020-10-11 13:57:40 +0200 | [diff] [blame] | 795 | |gn| gn 1,2 find the next match with the last used |
| 796 | search pattern and Visually select it |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 797 | |go| go 1 cursor to byte N in the buffer |
| 798 | |gp| ["x]gp 2 put the text [from register x] after the |
| 799 | cursor N times, leave the cursor after it |
| 800 | |gq| gq{motion} 2 format Nmove text |
| 801 | |gr| gr{char} 2 virtual replace N chars with {char} |
| 802 | |gs| gs go to sleep for N seconds (default 1) |
Bram Moolenaar | 531da59 | 2013-05-06 05:58:55 +0200 | [diff] [blame] | 803 | |gt| gt go to the next tab page |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 804 | |gu| gu{motion} 2 make Nmove text lowercase |
| 805 | |gv| gv reselect the previous Visual area |
| 806 | |gw| gw{motion} 2 format Nmove text and keep cursor |
Bram Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 807 | |g@| g@{motion} call 'operatorfunc' |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 808 | |g~| g~{motion} 2 swap case for Nmove text |
| 809 | |g<Down>| g<Down> 1 same as "gj" |
| 810 | |g<End>| g<End> 1 same as "g$" |
| 811 | |g<Home>| g<Home> 1 same as "g0" |
| 812 | |g<LeftMouse>| g<LeftMouse> same as <C-LeftMouse> |
| 813 | g<MiddleMouse> same as <C-MiddleMouse> |
| 814 | |g<RightMouse>| g<RightMouse> same as <C-RightMouse> |
Bram Moolenaar | 62a2325 | 2020-08-09 14:04:42 +0200 | [diff] [blame] | 815 | |g<Tab>| g<Tab> go to the last accessed tab page. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 816 | |g<Up>| g<Up> 1 same as "gk" |
| 817 | |
| 818 | ============================================================================== |
| 819 | 2.5 Commands starting with 'z' *z* |
| 820 | |
| 821 | tag char note action in Normal mode ~ |
| 822 | ------------------------------------------------------------------------------ |
| 823 | |z<CR>| z<CR> redraw, cursor line to top of window, |
| 824 | cursor on first non-blank |
| 825 | |zN<CR>| z{height}<CR> redraw, make window {height} lines high |
| 826 | |z+| z+ cursor on line N (default line below |
| 827 | window), otherwise like "z<CR>" |
| 828 | |z-| z- redraw, cursor line at bottom of window, |
| 829 | cursor on first non-blank |
| 830 | |z.| z. redraw, cursor line to center of window, |
| 831 | cursor on first non-blank |
Bram Moolenaar | 5c2f050 | 2005-12-23 22:11:04 +0000 | [diff] [blame] | 832 | |z=| z= give spelling suggestions |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 833 | |zA| zA open a closed fold or close an open fold |
| 834 | recursively |
| 835 | |zC| zC close folds recursively |
| 836 | |zD| zD delete folds recursively |
| 837 | |zE| zE eliminate all folds |
| 838 | |zF| zF create a fold for N lines |
Bram Moolenaar | acc2240 | 2020-06-07 21:07:18 +0200 | [diff] [blame] | 839 | |zG| zG temporarily mark word as correctly spelled |
Bram Moolenaar | 56b45b9 | 2013-06-24 22:22:18 +0200 | [diff] [blame] | 840 | |zH| zH when 'wrap' off scroll half a screenwidth |
| 841 | to the right |
| 842 | |zL| zL when 'wrap' off scroll half a screenwidth |
| 843 | to the left |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 844 | |zM| zM set 'foldlevel' to zero |
| 845 | |zN| zN set 'foldenable' |
| 846 | |zO| zO open folds recursively |
| 847 | |zR| zR set 'foldlevel' to the deepest fold |
Bram Moolenaar | acc2240 | 2020-06-07 21:07:18 +0200 | [diff] [blame] | 848 | |zW| zW temporarily mark word as incorrectly spelled |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 849 | |zX| zX re-apply 'foldlevel' |
| 850 | |z^| z^ cursor on line N (default line above |
| 851 | window), otherwise like "z-" |
| 852 | |za| za open a closed fold, close an open fold |
| 853 | |zb| zb redraw, cursor line at bottom of window |
| 854 | |zc| zc close a fold |
| 855 | |zd| zd delete a fold |
| 856 | |ze| ze when 'wrap' off scroll horizontally to |
| 857 | position the cursor at the end (right side) |
| 858 | of the screen |
| 859 | |zf| zf{motion} create a fold for Nmove text |
Bram Moolenaar | acc2240 | 2020-06-07 21:07:18 +0200 | [diff] [blame] | 860 | |zg| zg permanently mark word as correctly spelled |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 861 | |zh| zh when 'wrap' off scroll screen N characters |
| 862 | to the right |
| 863 | |zi| zi toggle 'foldenable' |
| 864 | |zj| zj 1 move to the start of the next fold |
| 865 | |zk| zk 1 move to the end of the previous fold |
| 866 | |zl| zl when 'wrap' off scroll screen N characters |
| 867 | to the left |
| 868 | |zm| zm subtract one from 'foldlevel' |
| 869 | |zn| zn reset 'foldenable' |
| 870 | |zo| zo open fold |
Christian Brabandt | 2fa9384 | 2021-05-30 22:17:25 +0200 | [diff] [blame] | 871 | |zp| zp paste in block-mode without trailing spaces |
| 872 | |zP| zP paste in block-mode without trailing spaces |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 873 | |zr| zr add one to 'foldlevel' |
| 874 | |zs| zs when 'wrap' off scroll horizontally to |
| 875 | position the cursor at the start (left |
| 876 | side) of the screen |
| 877 | |zt| zt redraw, cursor line at top of window |
Bram Moolenaar | 25c9c68 | 2019-05-05 18:13:34 +0200 | [diff] [blame] | 878 | |zuw| zuw undo |zw| |
| 879 | |zug| zug undo |zg| |
| 880 | |zuW| zuW undo |zW| |
| 881 | |zuG| zuG undo |zG| |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 882 | |zv| zv open enough folds to view the cursor line |
Bram Moolenaar | acc2240 | 2020-06-07 21:07:18 +0200 | [diff] [blame] | 883 | |zw| zw permanently mark word as incorrectly spelled |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 884 | |zx| zx re-apply 'foldlevel' and do "zv" |
Christian Brabandt | 544a38e | 2021-06-10 19:39:11 +0200 | [diff] [blame] | 885 | |zy| zy yank without trailing spaces |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 886 | |zz| zz redraw, cursor line at center of window |
| 887 | |z<Left>| z<Left> same as "zh" |
| 888 | |z<Right>| z<Right> same as "zl" |
| 889 | |
| 890 | ============================================================================== |
Bram Moolenaar | f6b4010 | 2019-02-22 15:24:03 +0100 | [diff] [blame] | 891 | 2.6 Operator-pending mode *operator-pending-index* |
| 892 | |
| 893 | These can be used after an operator, but before a {motion} has been entered. |
| 894 | |
Bram Moolenaar | 2696761 | 2019-03-17 17:13:16 +0100 | [diff] [blame] | 895 | tag char action in Operator-pending mode ~ |
Bram Moolenaar | f6b4010 | 2019-02-22 15:24:03 +0100 | [diff] [blame] | 896 | ----------------------------------------------------------------------- |
| 897 | |o_v| v force operator to work characterwise |
| 898 | |o_V| V force operator to work linewise |
| 899 | |o_CTRL-V| CTRL-V force operator to work blockwise |
| 900 | |
| 901 | ============================================================================== |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 902 | 3. Visual mode *visual-index* |
| 903 | |
Bram Moolenaar | 402d2fe | 2005-04-15 21:00:38 +0000 | [diff] [blame] | 904 | Most commands in Visual mode are the same as in Normal mode. The ones listed |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 905 | here are those that are different. |
| 906 | |
| 907 | tag command note action in Visual mode ~ |
| 908 | ------------------------------------------------------------------------------ |
| 909 | |v_CTRL-\_CTRL-N| CTRL-\ CTRL-N stop Visual mode |
| 910 | |v_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode' |
Bram Moolenaar | aa3b15d | 2016-04-21 08:53:19 +0200 | [diff] [blame] | 911 | |v_CTRL-A| CTRL-A 2 add N to number in highlighted text |
Bram Moolenaar | 8169525 | 2004-12-29 20:58:21 +0000 | [diff] [blame] | 912 | |v_CTRL-C| CTRL-C stop Visual mode |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 913 | |v_CTRL-G| CTRL-G toggle between Visual mode and Select mode |
| 914 | |v_<BS>| <BS> 2 Select mode: delete highlighted area |
| 915 | |v_CTRL-H| CTRL-H 2 same as <BS> |
| 916 | |v_CTRL-O| CTRL-O switch from Select to Visual mode for one |
| 917 | command |
| 918 | |v_CTRL-V| CTRL-V make Visual mode blockwise or stop Visual |
| 919 | mode |
Bram Moolenaar | aa3b15d | 2016-04-21 08:53:19 +0200 | [diff] [blame] | 920 | |v_CTRL-X| CTRL-X 2 subtract N from number in highlighted text |
Bram Moolenaar | 8169525 | 2004-12-29 20:58:21 +0000 | [diff] [blame] | 921 | |v_<Esc>| <Esc> stop Visual mode |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 922 | |v_CTRL-]| CTRL-] jump to highlighted tag |
| 923 | |v_!| !{filter} 2 filter the highlighted lines through the |
| 924 | external command {filter} |
| 925 | |v_:| : start a command-line with the highlighted |
| 926 | lines as a range |
| 927 | |v_<| < 2 shift the highlighted lines one |
| 928 | 'shiftwidth' left |
| 929 | |v_=| = 2 filter the highlighted lines through the |
| 930 | external program given with the 'equalprg' |
| 931 | option |
| 932 | |v_>| > 2 shift the highlighted lines one |
| 933 | 'shiftwidth' right |
| 934 | |v_b_A| A 2 block mode: append same text in all lines, |
| 935 | after the highlighted area |
| 936 | |v_C| C 2 delete the highlighted lines and start |
| 937 | insert |
| 938 | |v_D| D 2 delete the highlighted lines |
| 939 | |v_b_I| I 2 block mode: insert same text in all lines, |
| 940 | before the highlighted area |
| 941 | |v_J| J 2 join the highlighted lines |
| 942 | |v_K| K run 'keywordprg' on the highlighted area |
Bram Moolenaar | f10911e | 2022-01-29 22:20:48 +0000 | [diff] [blame] | 943 | |v_O| O move horizontally to other corner of area |
| 944 | |v_P| P replace highlighted area with register |
Shougo Matsushita | 509142a | 2022-05-06 11:45:09 +0100 | [diff] [blame] | 945 | contents; registers are unchanged |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 946 | Q does not start Ex mode |
| 947 | |v_R| R 2 delete the highlighted lines and start |
| 948 | insert |
| 949 | |v_S| S 2 delete the highlighted lines and start |
| 950 | insert |
| 951 | |v_U| U 2 make highlighted area uppercase |
| 952 | |v_V| V make Visual mode linewise or stop Visual |
| 953 | mode |
| 954 | |v_X| X 2 delete the highlighted lines |
| 955 | |v_Y| Y yank the highlighted lines |
Bram Moolenaar | f233048 | 2008-06-24 20:19:36 +0000 | [diff] [blame] | 956 | |v_aquote| a" extend highlighted area with a double |
| 957 | quoted string |
| 958 | |v_a'| a' extend highlighted area with a single |
| 959 | quoted string |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 960 | |v_a(| a( same as ab |
| 961 | |v_a)| a) same as ab |
| 962 | |v_a<| a< extend highlighted area with a <> block |
| 963 | |v_a>| a> same as a< |
| 964 | |v_aB| aB extend highlighted area with a {} block |
| 965 | |v_aW| aW extend highlighted area with "a WORD" |
| 966 | |v_a[| a[ extend highlighted area with a [] block |
| 967 | |v_a]| a] same as a[ |
Bram Moolenaar | f233048 | 2008-06-24 20:19:36 +0000 | [diff] [blame] | 968 | |v_a`| a` extend highlighted area with a backtick |
| 969 | quoted string |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 970 | |v_ab| ab extend highlighted area with a () block |
| 971 | |v_ap| ap extend highlighted area with a paragraph |
| 972 | |v_as| as extend highlighted area with a sentence |
Bram Moolenaar | f233048 | 2008-06-24 20:19:36 +0000 | [diff] [blame] | 973 | |v_at| at extend highlighted area with a tag block |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 974 | |v_aw| aw extend highlighted area with "a word" |
| 975 | |v_a{| a{ same as aB |
| 976 | |v_a}| a} same as aB |
| 977 | |v_c| c 2 delete highlighted area and start insert |
| 978 | |v_d| d 2 delete highlighted area |
Bram Moolenaar | aa3b15d | 2016-04-21 08:53:19 +0200 | [diff] [blame] | 979 | |v_g_CTRL-A| g CTRL-A 2 add N to number in highlighted text |
| 980 | |v_g_CTRL-X| g CTRL-X 2 subtract N from number in highlighted text |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 981 | |v_gJ| gJ 2 join the highlighted lines without |
| 982 | inserting spaces |
| 983 | |v_gq| gq 2 format the highlighted lines |
| 984 | |v_gv| gv exchange current and previous highlighted |
| 985 | area |
Bram Moolenaar | f233048 | 2008-06-24 20:19:36 +0000 | [diff] [blame] | 986 | |v_iquote| i" extend highlighted area with a double |
| 987 | quoted string (without quotes) |
| 988 | |v_i'| i' extend highlighted area with a single |
| 989 | quoted string (without quotes) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 990 | |v_i(| i( same as ib |
| 991 | |v_i)| i) same as ib |
| 992 | |v_i<| i< extend highlighted area with inner <> block |
| 993 | |v_i>| i> same as i< |
| 994 | |v_iB| iB extend highlighted area with inner {} block |
| 995 | |v_iW| iW extend highlighted area with "inner WORD" |
| 996 | |v_i[| i[ extend highlighted area with inner [] block |
| 997 | |v_i]| i] same as i[ |
Bram Moolenaar | f233048 | 2008-06-24 20:19:36 +0000 | [diff] [blame] | 998 | |v_i`| i` extend highlighted area with a backtick |
| 999 | quoted string (without the backticks) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1000 | |v_ib| ib extend highlighted area with inner () block |
| 1001 | |v_ip| ip extend highlighted area with inner paragraph |
| 1002 | |v_is| is extend highlighted area with inner sentence |
Bram Moolenaar | f233048 | 2008-06-24 20:19:36 +0000 | [diff] [blame] | 1003 | |v_it| it extend highlighted area with inner tag block |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1004 | |v_iw| iw extend highlighted area with "inner word" |
| 1005 | |v_i{| i{ same as iB |
| 1006 | |v_i}| i} same as iB |
| 1007 | |v_o| o move cursor to other corner of area |
Bram Moolenaar | f10911e | 2022-01-29 22:20:48 +0000 | [diff] [blame] | 1008 | |v_p| p replace highlighted area with register |
| 1009 | contents; deleted text in unnamed register |
Bram Moolenaar | 7dda86f | 2018-04-20 22:36:41 +0200 | [diff] [blame] | 1010 | |v_r| r 2 replace highlighted area with a character |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1011 | |v_s| s 2 delete highlighted area and start insert |
| 1012 | |v_u| u 2 make highlighted area lowercase |
| 1013 | |v_v| v make Visual mode characterwise or stop |
| 1014 | Visual mode |
| 1015 | |v_x| x 2 delete the highlighted area |
| 1016 | |v_y| y yank the highlighted area |
| 1017 | |v_~| ~ 2 swap case for the highlighted area |
| 1018 | |
| 1019 | ============================================================================== |
| 1020 | 4. Command-line editing *ex-edit-index* |
| 1021 | |
| 1022 | Get to the command-line with the ':', '!', '/' or '?' commands. |
| 1023 | Normal characters are inserted at the current cursor position. |
| 1024 | "Completion" below refers to context-sensitive completion. It will complete |
| 1025 | file names, tags, commands etc. as appropriate. |
| 1026 | |
Bram Moolenaar | 2696761 | 2019-03-17 17:13:16 +0100 | [diff] [blame] | 1027 | tag command action in Command-line editing mode ~ |
Bram Moolenaar | 2a8a3ec | 2011-01-08 16:06:37 +0100 | [diff] [blame] | 1028 | ------------------------------------------------------------------------------ |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1029 | CTRL-@ not used |
| 1030 | |c_CTRL-A| CTRL-A do completion on the pattern in front of the |
| 1031 | cursor and insert all matches |
| 1032 | |c_CTRL-B| CTRL-B cursor to begin of command-line |
Bram Moolenaar | 2a8a3ec | 2011-01-08 16:06:37 +0100 | [diff] [blame] | 1033 | |c_CTRL-C| CTRL-C same as <Esc> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1034 | |c_CTRL-D| CTRL-D list completions that match the pattern in |
| 1035 | front of the cursor |
| 1036 | |c_CTRL-E| CTRL-E cursor to end of command-line |
| 1037 | |'cedit'| CTRL-F default value for 'cedit': opens the |
| 1038 | command-line window; otherwise not used |
Bram Moolenaar | 818078d | 2016-08-27 21:58:42 +0200 | [diff] [blame] | 1039 | |c_CTRL-G| CTRL-G next match when 'incsearch' is active |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1040 | |c_<BS>| <BS> delete the character in front of the cursor |
| 1041 | |c_digraph| {char1} <BS> {char2} |
| 1042 | enter digraph when 'digraph' is on |
| 1043 | |c_CTRL-H| CTRL-H same as <BS> |
| 1044 | |c_<Tab>| <Tab> if 'wildchar' is <Tab>: Do completion on |
| 1045 | the pattern in front of the cursor |
| 1046 | |c_<S-Tab>| <S-Tab> same as CTRL-P |
| 1047 | |c_wildchar| 'wildchar' Do completion on the pattern in front of the |
| 1048 | cursor (default: <Tab>) |
| 1049 | |c_CTRL-I| CTRL-I same as <Tab> |
| 1050 | |c_<NL>| <NL> same as <CR> |
| 1051 | |c_CTRL-J| CTRL-J same as <CR> |
| 1052 | |c_CTRL-K| CTRL-K {char1} {char2} |
| 1053 | enter digraph |
| 1054 | |c_CTRL-L| CTRL-L do completion on the pattern in front of the |
| 1055 | cursor and insert the longest common part |
| 1056 | |c_<CR>| <CR> execute entered command |
Bram Moolenaar | 2ec618c | 2016-10-01 14:47:05 +0200 | [diff] [blame] | 1057 | |c_CTRL-M| CTRL-M same as <CR> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1058 | |c_CTRL-N| CTRL-N after using 'wildchar' with multiple matches: |
Bram Moolenaar | 214641f | 2017-03-05 17:04:09 +0100 | [diff] [blame] | 1059 | go to next match, otherwise: recall older |
| 1060 | command-line from history. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1061 | CTRL-O not used |
| 1062 | |c_CTRL-P| CTRL-P after using 'wildchar' with multiple matches: |
Bram Moolenaar | 214641f | 2017-03-05 17:04:09 +0100 | [diff] [blame] | 1063 | go to previous match, otherwise: recall older |
| 1064 | command-line from history. |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1065 | |c_CTRL-Q| CTRL-Q same as CTRL-V, unless it's used for terminal |
| 1066 | control flow |
Bram Moolenaar | 63b74a8 | 2019-03-24 15:09:13 +0100 | [diff] [blame] | 1067 | |c_CTRL-R| CTRL-R {regname} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1068 | insert the contents of a register or object |
| 1069 | under the cursor as if typed |
Bram Moolenaar | 63b74a8 | 2019-03-24 15:09:13 +0100 | [diff] [blame] | 1070 | |c_CTRL-R_CTRL-R| CTRL-R CTRL-R {regname} |
| 1071 | |c_CTRL-R_CTRL-O| CTRL-R CTRL-O {regname} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1072 | insert the contents of a register or object |
| 1073 | under the cursor literally |
Bram Moolenaar | acc2240 | 2020-06-07 21:07:18 +0200 | [diff] [blame] | 1074 | CTRL-S not used, or used for terminal control flow |
Bram Moolenaar | 818078d | 2016-08-27 21:58:42 +0200 | [diff] [blame] | 1075 | |c_CTRL-T| CTRL-T previous match when 'incsearch' is active |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1076 | |c_CTRL-U| CTRL-U remove all characters |
| 1077 | |c_CTRL-V| CTRL-V insert next non-digit literally, insert three |
| 1078 | digit decimal number as a single byte. |
| 1079 | |c_CTRL-W| CTRL-W delete the word in front of the cursor |
| 1080 | CTRL-X not used (reserved for completion) |
| 1081 | CTRL-Y copy (yank) modeless selection |
| 1082 | CTRL-Z not used (reserved for suspend) |
| 1083 | |c_<Esc>| <Esc> abandon command-line without executing it |
Bram Moolenaar | 2ec618c | 2016-10-01 14:47:05 +0200 | [diff] [blame] | 1084 | |c_CTRL-[| CTRL-[ same as <Esc> |
Bram Moolenaar | fa13eef | 2013-02-06 17:34:04 +0100 | [diff] [blame] | 1085 | |c_CTRL-\_CTRL-N| CTRL-\ CTRL-N go to Normal mode, abandon command-line |
| 1086 | |c_CTRL-\_CTRL-G| CTRL-\ CTRL-G go to mode specified with 'insertmode', |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1087 | abandon command-line |
| 1088 | CTRL-\ a - d reserved for extensions |
| 1089 | |c_CTRL-\_e| CTRL-\ e {expr} replace the command line with the result of |
| 1090 | {expr} |
| 1091 | CTRL-\ f - z reserved for extensions |
| 1092 | CTRL-\ others not used |
Bram Moolenaar | dd2a3cd | 2007-05-05 17:10:09 +0000 | [diff] [blame] | 1093 | |c_CTRL-]| CTRL-] trigger abbreviation |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1094 | |c_CTRL-^| CTRL-^ toggle use of |:lmap| mappings |
| 1095 | |c_CTRL-_| CTRL-_ when 'allowrevins' set: change language |
| 1096 | (Hebrew, Farsi) |
| 1097 | |c_<Del>| <Del> delete the character under the cursor |
| 1098 | |
| 1099 | |c_<Left>| <Left> cursor left |
| 1100 | |c_<S-Left>| <S-Left> cursor one word left |
| 1101 | |c_<C-Left>| <C-Left> cursor one word left |
| 1102 | |c_<Right>| <Right> cursor right |
| 1103 | |c_<S-Right>| <S-Right> cursor one word right |
| 1104 | |c_<C-Right>| <C-Right> cursor one word right |
| 1105 | |c_<Up>| <Up> recall previous command-line from history that |
| 1106 | matches pattern in front of the cursor |
| 1107 | |c_<S-Up>| <S-Up> recall previous command-line from history |
| 1108 | |c_<Down>| <Down> recall next command-line from history that |
| 1109 | matches pattern in front of the cursor |
| 1110 | |c_<S-Down>| <S-Down> recall next command-line from history |
| 1111 | |c_<Home>| <Home> cursor to start of command-line |
| 1112 | |c_<End>| <End> cursor to end of command-line |
| 1113 | |c_<PageDown>| <PageDown> same as <S-Down> |
| 1114 | |c_<PageUp>| <PageUp> same as <S-Up> |
| 1115 | |c_<Insert>| <Insert> toggle insert/overstrike mode |
| 1116 | |c_<LeftMouse>| <LeftMouse> cursor at mouse click |
| 1117 | |
Yee Cheng Chin | 2bbd0d3 | 2023-10-14 02:23:45 -0700 | [diff] [blame] | 1118 | commands in wildmenu mode (see 'wildmenu') |
| 1119 | |
| 1120 | <Up> move up to parent / select the previous match |
| 1121 | <Down> move down to submenu / select the next match |
| 1122 | <Left> select the previous match / move up to parent |
zeertzjq | 3c81f47 | 2023-10-15 16:02:08 +0800 | [diff] [blame] | 1123 | <Right> select the next match / move down to submenu |
Yee Cheng Chin | 2bbd0d3 | 2023-10-14 02:23:45 -0700 | [diff] [blame] | 1124 | <CR> move into submenu when doing menu completion |
Yee Cheng Chin | 209ec90 | 2023-10-17 10:56:25 +0200 | [diff] [blame] | 1125 | CTRL-E stop completion and go back to original text |
| 1126 | CTRL-Y accept selected match and stop completion |
Yee Cheng Chin | 2bbd0d3 | 2023-10-14 02:23:45 -0700 | [diff] [blame] | 1127 | other stop completion and insert the typed character |
| 1128 | |
| 1129 | commands in wildmenu mode with 'wildoptions' set to "pum" |
| 1130 | |
Yee Cheng Chin | 2bbd0d3 | 2023-10-14 02:23:45 -0700 | [diff] [blame] | 1131 | <PageUp> select a match several entries back |
| 1132 | <PageDown> select a match several entries forward |
| 1133 | |
Bram Moolenaar | f6b4010 | 2019-02-22 15:24:03 +0100 | [diff] [blame] | 1134 | ============================================================================== |
| 1135 | 5. Terminal-Job mode *terminal-job-index* |
| 1136 | |
| 1137 | Most Normal mode commands except for window commands (|CTRL-W|) do not work in |
| 1138 | a terminal window. Switch to Terminal-Normal mode to use them. |
| 1139 | This assumes 'termwinkey' is not set. |
| 1140 | |
Bram Moolenaar | 2696761 | 2019-03-17 17:13:16 +0100 | [diff] [blame] | 1141 | tag char action in Terminal-Job mode ~ |
Bram Moolenaar | f6b4010 | 2019-02-22 15:24:03 +0100 | [diff] [blame] | 1142 | ----------------------------------------------------------------------- |
| 1143 | |t_CTRL-\_CTRL-N| CTRL-\ CTRL-N switch to Terminal-Normal mode |
Bram Moolenaar | 2696761 | 2019-03-17 17:13:16 +0100 | [diff] [blame] | 1144 | |t_CTRL-W_N| CTRL-W N switch to Terminal-Normal mode |
| 1145 | |t_CTRL-W_:| CTRL-W : enter an Ex command |
| 1146 | |t_CTRL-W_.| CTRL-W . type CTRL-W in the terminal |
Bram Moolenaar | f6b4010 | 2019-02-22 15:24:03 +0100 | [diff] [blame] | 1147 | CTRL-W CTRL-\ send a CTRL-\ to the job in the terminal |
Bram Moolenaar | 7ceefb3 | 2020-05-01 16:07:38 +0200 | [diff] [blame] | 1148 | |t_CTRL-W_quote| CTRL-W " {register} |
Bram Moolenaar | f6b4010 | 2019-02-22 15:24:03 +0100 | [diff] [blame] | 1149 | paste register in the terminal |
| 1150 | |t_CTRL-W_CTRL-C| CTRL-W CTRL-C forcefully ends the job |
Bram Moolenaar | 911ead1 | 2019-04-21 00:03:35 +0200 | [diff] [blame] | 1151 | |t_CTRL-W_CTRL-W| CTRL-W CTRL-W move focus to the next window |
Bram Moolenaar | 2696761 | 2019-03-17 17:13:16 +0100 | [diff] [blame] | 1152 | |t_CTRL-W_gt| CTRL-W gt go to next tabpage, same as `gt` |
| 1153 | |t_CTRL-W_gT| CTRL-W gT go to previous tabpage, same as `gT` |
Bram Moolenaar | f6b4010 | 2019-02-22 15:24:03 +0100 | [diff] [blame] | 1154 | |
Bram Moolenaar | acb4f22 | 2016-01-10 15:59:26 +0100 | [diff] [blame] | 1155 | You found it, Arthur! *holy-grail* *:smile* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1156 | |
| 1157 | ============================================================================== |
Bram Moolenaar | f6b4010 | 2019-02-22 15:24:03 +0100 | [diff] [blame] | 1158 | 6. EX commands *ex-cmd-index* *:index* |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1159 | |
| 1160 | This is a brief but complete listing of all the ":" commands, without |
| 1161 | mentioning any arguments. The optional part of the command name is inside []. |
| 1162 | The commands are sorted on the non-optional part of their name. |
| 1163 | |
Bram Moolenaar | 2696761 | 2019-03-17 17:13:16 +0100 | [diff] [blame] | 1164 | tag command action ~ |
Bram Moolenaar | 2a8a3ec | 2011-01-08 16:06:37 +0100 | [diff] [blame] | 1165 | ------------------------------------------------------------------------------ |
Bram Moolenaar | 30e9b3c | 2019-09-07 16:24:12 +0200 | [diff] [blame] | 1166 | |:| : nothing |
| 1167 | |:range| :{range} go to last line in {range} |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1168 | |:!| :! filter lines or execute an external command |
| 1169 | |:!!| :!! repeat last ":!" command |
| 1170 | |:#| :# same as ":number" |
| 1171 | |:&| :& repeat last ":substitute" |
Yee Cheng Chin | b77bdce | 2022-10-15 10:22:19 +0100 | [diff] [blame] | 1172 | |:star| :* use the last Visual area, like :'<,'> |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1173 | |:<| :< shift lines one 'shiftwidth' left |
Bram Moolenaar | 9da17d7 | 2022-02-09 21:50:44 +0000 | [diff] [blame] | 1174 | |:=| := print the last line number |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1175 | |:>| :> shift lines one 'shiftwidth' right |
| 1176 | |:@| :@ execute contents of a register |
| 1177 | |:@@| :@@ repeat the previous ":@" |
dkearns | 9c5b90d | 2024-01-24 06:34:28 +1100 | [diff] [blame] | 1178 | |:2match| :2mat[ch] define a second match to highlight |
| 1179 | |:3match| :3mat[ch] define a third match to highlight |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1180 | |:Next| :N[ext] go to previous file in the argument list |
| 1181 | |:Print| :P[rint] print lines |
| 1182 | |:X| :X ask for encryption key |
| 1183 | |:append| :a[ppend] append text |
| 1184 | |:abbreviate| :ab[breviate] enter abbreviation |
| 1185 | |:abclear| :abc[lear] remove all abbreviations |
| 1186 | |:aboveleft| :abo[veleft] make split window appear left or above |
h-east | 0c3e57b | 2025-01-02 11:00:49 +0100 | [diff] [blame] | 1187 | |:abstract| :abstract declare a Vim9 abstract class |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1188 | |:all| :al[l] open a window for each file in the argument |
| 1189 | list |
| 1190 | |:amenu| :am[enu] enter new menu item for all modes |
| 1191 | |:anoremenu| :an[oremenu] enter a new menu for all modes that will not |
| 1192 | be remapped |
| 1193 | |:args| :ar[gs] print the argument list |
| 1194 | |:argadd| :arga[dd] add items to the argument list |
Bram Moolenaar | 1588bc8 | 2022-03-08 21:35:07 +0000 | [diff] [blame] | 1195 | |:argdedupe| :argded[upe] remove duplicates from the argument list |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1196 | |:argdelete| :argd[elete] delete items from the argument list |
| 1197 | |:argedit| :arge[dit] add item to the argument list and edit it |
| 1198 | |:argdo| :argdo do a command on all items in the argument list |
| 1199 | |:argglobal| :argg[lobal] define the global argument list |
| 1200 | |:arglocal| :argl[ocal] define a local argument list |
| 1201 | |:argument| :argu[ment] go to specific file in the argument list |
| 1202 | |:ascii| :as[cii] print ascii value of character under the cursor |
| 1203 | |:autocmd| :au[tocmd] enter or show autocommands |
| 1204 | |:augroup| :aug[roup] select the autocommand group to use |
| 1205 | |:aunmenu| :aun[menu] remove menu for all modes |
| 1206 | |:buffer| :b[uffer] go to specific buffer in the buffer list |
| 1207 | |:bNext| :bN[ext] go to previous buffer in the buffer list |
| 1208 | |:ball| :ba[ll] open a window for each buffer in the buffer list |
| 1209 | |:badd| :bad[d] add buffer to the buffer list |
Bram Moolenaar | 942db23 | 2021-02-13 18:14:48 +0100 | [diff] [blame] | 1210 | |:balt| :balt like ":badd" but also set the alternate file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1211 | |:bdelete| :bd[elete] remove a buffer from the buffer list |
| 1212 | |:behave| :be[have] set mouse and selection behavior |
| 1213 | |:belowright| :bel[owright] make split window appear right or below |
| 1214 | |:bfirst| :bf[irst] go to first buffer in the buffer list |
| 1215 | |:blast| :bl[ast] go to last buffer in the buffer list |
| 1216 | |:bmodified| :bm[odified] go to next buffer in the buffer list that has |
| 1217 | been modified |
| 1218 | |:bnext| :bn[ext] go to next buffer in the buffer list |
| 1219 | |:botright| :bo[tright] make split window appear at bottom or far right |
| 1220 | |:bprevious| :bp[revious] go to previous buffer in the buffer list |
| 1221 | |:brewind| :br[ewind] go to first buffer in the buffer list |
| 1222 | |:break| :brea[k] break out of while loop |
| 1223 | |:breakadd| :breaka[dd] add a debugger breakpoint |
| 1224 | |:breakdel| :breakd[el] delete a debugger breakpoint |
| 1225 | |:breaklist| :breakl[ist] list debugger breakpoints |
| 1226 | |:browse| :bro[wse] use file selection dialog |
h-east | 0c3e57b | 2025-01-02 11:00:49 +0100 | [diff] [blame] | 1227 | |:bufdo| :bufd[o] execute command in each listed buffer |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1228 | |:buffers| :buffers list all files in the buffer list |
| 1229 | |:bunload| :bun[load] unload a specific buffer |
| 1230 | |:bwipeout| :bw[ipeout] really delete a buffer |
| 1231 | |:change| :c[hange] replace a line or series of lines |
| 1232 | |:cNext| :cN[ext] go to previous error |
| 1233 | |:cNfile| :cNf[ile] go to last error in previous file |
| 1234 | |:cabbrev| :ca[bbrev] like ":abbreviate" but for Command-line mode |
| 1235 | |:cabclear| :cabc[lear] clear all abbreviations for Command-line mode |
Bram Moolenaar | 3ff3311 | 2019-05-03 21:56:35 +0200 | [diff] [blame] | 1236 | |:cabove| :cabo[ve] go to error above current line |
Bram Moolenaar | a687837 | 2014-03-22 21:02:50 +0100 | [diff] [blame] | 1237 | |:caddbuffer| :cad[dbuffer] add errors from buffer |
| 1238 | |:caddexpr| :cadde[xpr] add errors from expr |
Bram Moolenaar | 4770d09 | 2006-01-12 23:22:24 +0000 | [diff] [blame] | 1239 | |:caddfile| :caddf[ile] add error message to current quickfix list |
Bram Moolenaar | cf6a55c | 2019-05-05 15:02:30 +0200 | [diff] [blame] | 1240 | |:cafter| :caf[ter] go to error after current cursor |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1241 | |:call| :cal[l] call a function |
| 1242 | |:catch| :cat[ch] part of a :try command |
h-east | 0c3e57b | 2025-01-02 11:00:49 +0100 | [diff] [blame] | 1243 | |:cbefore| :cbe[fore] go to error before current cursor |
Bram Moolenaar | cf6a55c | 2019-05-05 15:02:30 +0200 | [diff] [blame] | 1244 | |:cbelow| :cbel[ow] go to error below current line |
Bram Moolenaar | 537ef08 | 2016-07-09 17:56:19 +0200 | [diff] [blame] | 1245 | |:cbottom| :cbo[ttom] scroll to the bottom of the quickfix window |
Bram Moolenaar | 86b6835 | 2004-12-27 21:59:20 +0000 | [diff] [blame] | 1246 | |:cbuffer| :cb[uffer] parse error messages and jump to first error |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1247 | |:cc| :cc go to specific error |
| 1248 | |:cclose| :ccl[ose] close quickfix window |
| 1249 | |:cd| :cd change directory |
Bram Moolenaar | aa23b37 | 2015-09-08 18:46:31 +0200 | [diff] [blame] | 1250 | |:cdo| :cdo execute command in each valid error list entry |
| 1251 | |:cfdo| :cfd[o] execute command in each file in error list |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1252 | |:center| :ce[nter] format lines at the center |
Bram Moolenaar | 87e25fd | 2005-07-27 21:13:01 +0000 | [diff] [blame] | 1253 | |:cexpr| :cex[pr] read errors from expr and jump to first |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1254 | |:cfile| :cf[ile] read file with error messages and jump to first |
| 1255 | |:cfirst| :cfir[st] go to the specified error, default first one |
Bram Moolenaar | c01140a | 2006-03-24 22:21:52 +0000 | [diff] [blame] | 1256 | |:cgetbuffer| :cgetb[uffer] get errors from buffer |
Bram Moolenaar | 8ab561d | 2006-03-23 22:44:10 +0000 | [diff] [blame] | 1257 | |:cgetexpr| :cgete[xpr] get errors from expr |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1258 | |:cgetfile| :cg[etfile] read file with error messages |
Bram Moolenaar | 34700a6 | 2013-03-07 13:20:54 +0100 | [diff] [blame] | 1259 | |:changes| :changes print the change list |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1260 | |:chdir| :chd[ir] change directory |
| 1261 | |:checkpath| :che[ckpath] list included files |
| 1262 | |:checktime| :checkt[ime] check timestamp of loaded buffers |
Bram Moolenaar | 42ebd06 | 2016-07-17 13:35:14 +0200 | [diff] [blame] | 1263 | |:chistory| :chi[story] list the error lists |
h-east | 27f2e47 | 2025-01-03 10:45:15 +0100 | [diff] [blame] | 1264 | |:class| :class start of a class declaration |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1265 | |:clast| :cla[st] go to the specified error, default last one |
Bram Moolenaar | c95a302 | 2016-06-12 23:01:46 +0200 | [diff] [blame] | 1266 | |:clearjumps| :cle[arjumps] clear the jump list |
Hirohito Higashi | 73b9650 | 2025-06-28 18:18:21 +0200 | [diff] [blame] | 1267 | |:clipreset| :clip[reset] reset 'clipmethod' |
Bram Moolenaar | c95a302 | 2016-06-12 23:01:46 +0200 | [diff] [blame] | 1268 | |:clist| :cl[ist] list all errors |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1269 | |:close| :clo[se] close current window |
| 1270 | |:cmap| :cm[ap] like ":map" but for Command-line mode |
| 1271 | |:cmapclear| :cmapc[lear] clear all mappings for Command-line mode |
| 1272 | |:cmenu| :cme[nu] add menu for Command-line mode |
| 1273 | |:cnext| :cn[ext] go to next error |
| 1274 | |:cnewer| :cnew[er] go to newer error list |
| 1275 | |:cnfile| :cnf[ile] go to first error in next file |
| 1276 | |:cnoremap| :cno[remap] like ":noremap" but for Command-line mode |
| 1277 | |:cnoreabbrev| :cnorea[bbrev] like ":noreabbrev" but for Command-line mode |
| 1278 | |:cnoremenu| :cnoreme[nu] like ":noremenu" but for Command-line mode |
| 1279 | |:copy| :co[py] copy lines |
| 1280 | |:colder| :col[der] go to older error list |
| 1281 | |:colorscheme| :colo[rscheme] load a specific color scheme |
| 1282 | |:command| :com[mand] create user-defined command |
| 1283 | |:comclear| :comc[lear] clear all user-defined commands |
| 1284 | |:compiler| :comp[iler] do settings for a specific compiler |
| 1285 | |:continue| :con[tinue] go back to :while |
| 1286 | |:confirm| :conf[irm] prompt user when confirmation required |
Bram Moolenaar | 6c1e157 | 2019-06-22 02:13:00 +0200 | [diff] [blame] | 1287 | |:const| :cons[t] create a variable as a constant |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1288 | |:copen| :cope[n] open quickfix window |
| 1289 | |:cprevious| :cp[revious] go to previous error |
| 1290 | |:cpfile| :cpf[ile] go to last error in previous file |
| 1291 | |:cquit| :cq[uit] quit Vim with an error code |
| 1292 | |:crewind| :cr[ewind] go to the specified error, default first one |
Bram Moolenaar | acb4f22 | 2016-01-10 15:59:26 +0100 | [diff] [blame] | 1293 | |:cscope| :cs[cope] execute cscope command |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1294 | |:cstag| :cst[ag] use cscope to jump to a tag |
| 1295 | |:cunmap| :cu[nmap] like ":unmap" but for Command-line mode |
| 1296 | |:cunabbrev| :cuna[bbrev] like ":unabbrev" but for Command-line mode |
| 1297 | |:cunmenu| :cunme[nu] remove menu for Command-line mode |
| 1298 | |:cwindow| :cw[indow] open or close quickfix window |
| 1299 | |:delete| :d[elete] delete lines |
| 1300 | |:debug| :deb[ug] run a command in debugging mode |
| 1301 | |:debuggreedy| :debugg[reedy] read debug mode commands from normal input |
Bram Moolenaar | 191acfd | 2020-03-27 20:42:43 +0100 | [diff] [blame] | 1302 | |:def| :def define a Vim9 user function |
Bram Moolenaar | 388a5d4 | 2020-05-26 21:20:45 +0200 | [diff] [blame] | 1303 | |:defcompile| :defc[ompile] compile Vim9 user functions in current script |
h-east | 0c3e57b | 2025-01-02 11:00:49 +0100 | [diff] [blame] | 1304 | |:defer| :defe[r] call function when current function is done |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1305 | |:delcommand| :delc[ommand] delete user-defined command |
| 1306 | |:delfunction| :delf[unction] delete a user function |
Bram Moolenaar | 191acfd | 2020-03-27 20:42:43 +0100 | [diff] [blame] | 1307 | |:delmarks| :delm[arks] delete marks |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1308 | |:diffupdate| :dif[fupdate] update 'diff' buffers |
| 1309 | |:diffget| :diffg[et] remove differences in current buffer |
Bram Moolenaar | 2df6dcc | 2004-07-12 15:53:54 +0000 | [diff] [blame] | 1310 | |:diffoff| :diffo[ff] switch off diff mode |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1311 | |:diffpatch| :diffp[atch] apply a patch and show differences |
| 1312 | |:diffput| :diffpu[t] remove differences in other buffer |
| 1313 | |:diffsplit| :diffs[plit] show differences with another file |
h-east | 0c3e57b | 2025-01-02 11:00:49 +0100 | [diff] [blame] | 1314 | |:diffthis| :difft[his] make current window a diff window |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1315 | |:digraphs| :dig[raphs] show or enter digraphs |
| 1316 | |:display| :di[splay] display registers |
Bram Moolenaar | 191acfd | 2020-03-27 20:42:43 +0100 | [diff] [blame] | 1317 | |:disassemble| :disa[ssemble] disassemble Vim9 user function |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1318 | |:djump| :dj[ump] jump to #define |
Bram Moolenaar | b133208 | 2013-10-06 14:22:40 +0200 | [diff] [blame] | 1319 | |:dl| :dl short for |:delete| with the 'l' flag |
Bram Moolenaar | 9ba7e17 | 2013-07-17 22:37:26 +0200 | [diff] [blame] | 1320 | |:dlist| :dli[st] list #defines |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1321 | |:doautocmd| :do[autocmd] apply autocommands to current buffer |
| 1322 | |:doautoall| :doautoa[ll] apply autocommands for all loaded buffers |
Bram Moolenaar | b133208 | 2013-10-06 14:22:40 +0200 | [diff] [blame] | 1323 | |:dp| :d[elete]p short for |:delete| with the 'p' flag |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1324 | |:drop| :dr[op] jump to window editing file or edit file in |
| 1325 | current window |
| 1326 | |:dsearch| :ds[earch] list one #define |
| 1327 | |:dsplit| :dsp[lit] split window and jump to #define |
| 1328 | |:edit| :e[dit] edit a file |
Bram Moolenaar | d3667a2 | 2006-03-16 21:35:52 +0000 | [diff] [blame] | 1329 | |:earlier| :ea[rlier] go to older change, undo |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1330 | |:echo| :ec[ho] echoes the result of expressions |
Bram Moolenaar | dad4473 | 2021-03-31 20:07:33 +0200 | [diff] [blame] | 1331 | |:echoconsole| :echoc[onsole] like :echomsg but write to stdout |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1332 | |:echoerr| :echoe[rr] like :echo, show like an error and use history |
| 1333 | |:echohl| :echoh[l] set highlighting for echo commands |
| 1334 | |:echomsg| :echom[sg] same as :echo, put message in history |
| 1335 | |:echon| :echon same as :echo, but without <EOL> |
Yee Cheng Chin | b77bdce | 2022-10-15 10:22:19 +0100 | [diff] [blame] | 1336 | |:echowindow| :echow[indow] same as :echomsg, but use a popup window |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1337 | |:else| :el[se] part of an :if command |
| 1338 | |:elseif| :elsei[f] part of an :if command |
| 1339 | |:emenu| :em[enu] execute a menu by name |
h-east | 27f2e47 | 2025-01-03 10:45:15 +0100 | [diff] [blame] | 1340 | |:endclass| :endclass end of a class declaration |
Bram Moolenaar | 191acfd | 2020-03-27 20:42:43 +0100 | [diff] [blame] | 1341 | |:enddef| :enddef end of a user function started with :def |
h-east | 27f2e47 | 2025-01-03 10:45:15 +0100 | [diff] [blame] | 1342 | |:endenum| :endenum end of an enum declaration |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1343 | |:endif| :en[dif] end previous :if |
h-east | 27f2e47 | 2025-01-03 10:45:15 +0100 | [diff] [blame] | 1344 | |:endinterface| :endinterface end of an interface declaration |
Bram Moolenaar | 1756879 | 2005-07-06 22:28:03 +0000 | [diff] [blame] | 1345 | |:endfor| :endfo[r] end previous :for |
Bram Moolenaar | 191acfd | 2020-03-27 20:42:43 +0100 | [diff] [blame] | 1346 | |:endfunction| :endf[unction] end of a user function started with :function |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1347 | |:endtry| :endt[ry] end previous :try |
| 1348 | |:endwhile| :endw[hile] end previous :while |
| 1349 | |:enew| :ene[w] edit a new, unnamed buffer |
h-east | 0c3e57b | 2025-01-02 11:00:49 +0100 | [diff] [blame] | 1350 | |:enum| :enum start of an enum declaration |
Bram Moolenaar | 4d8f476 | 2021-06-27 15:18:56 +0200 | [diff] [blame] | 1351 | |:eval| :ev[al] evaluate an expression and discard the result |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1352 | |:ex| :ex same as ":edit" |
| 1353 | |:execute| :exe[cute] execute result of expressions |
| 1354 | |:exit| :exi[t] same as ":xit" |
Bram Moolenaar | 191acfd | 2020-03-27 20:42:43 +0100 | [diff] [blame] | 1355 | |:export| :exp[ort] Vim9: export an item from a script |
Bram Moolenaar | b5bf5b8 | 2004-12-24 14:35:23 +0000 | [diff] [blame] | 1356 | |:exusage| :exu[sage] overview of Ex commands |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1357 | |:file| :f[ile] show or set the current file name |
| 1358 | |:files| :files list all files in the buffer list |
| 1359 | |:filetype| :filet[ype] switch file type detection on/off |
Bram Moolenaar | e4a3bcf | 2016-08-26 19:52:37 +0200 | [diff] [blame] | 1360 | |:filter| :filt[er] filter output of following command |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1361 | |:find| :fin[d] find file in 'path' and edit it |
Bram Moolenaar | 4f4d51a | 2020-10-11 13:57:40 +0200 | [diff] [blame] | 1362 | |:final| :final declare an immutable variable in Vim9 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1363 | |:finally| :fina[lly] part of a :try command |
| 1364 | |:finish| :fini[sh] quit sourcing a Vim script |
| 1365 | |:first| :fir[st] go to the first file in the argument list |
| 1366 | |:fixdel| :fix[del] set key code of <Del> |
| 1367 | |:fold| :fo[ld] create a fold |
| 1368 | |:foldclose| :foldc[lose] close folds |
| 1369 | |:folddoopen| :foldd[oopen] execute command on lines not in a closed fold |
| 1370 | |:folddoclosed| :folddoc[losed] execute command on lines in a closed fold |
| 1371 | |:foldopen| :foldo[pen] open folds |
Bram Moolenaar | 1756879 | 2005-07-06 22:28:03 +0000 | [diff] [blame] | 1372 | |:for| :for for loop |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1373 | |:function| :fu[nction] define a user function |
| 1374 | |:global| :g[lobal] execute commands for matching lines |
| 1375 | |:goto| :go[to] go to byte in the buffer |
| 1376 | |:grep| :gr[ep] run 'grepprg' and jump to first match |
Bram Moolenaar | 1756879 | 2005-07-06 22:28:03 +0000 | [diff] [blame] | 1377 | |:grepadd| :grepa[dd] like :grep, but append to current list |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1378 | |:gui| :gu[i] start the GUI |
| 1379 | |:gvim| :gv[im] start the GUI |
| 1380 | |:hardcopy| :ha[rdcopy] send text to the printer |
| 1381 | |:help| :h[elp] open a help window |
Bram Moolenaar | 5bfa2ed | 2014-09-19 19:39:34 +0200 | [diff] [blame] | 1382 | |:helpclose| :helpc[lose] close one help window |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1383 | |:helpfind| :helpf[ind] dialog to open a help window |
| 1384 | |:helpgrep| :helpg[rep] like ":grep" but searches help files |
| 1385 | |:helptags| :helpt[ags] generate help tags for a directory |
| 1386 | |:highlight| :hi[ghlight] specify highlighting methods |
| 1387 | |:hide| :hid[e] hide current buffer for a command |
| 1388 | |:history| :his[tory] print a history list |
h-east | fd77161 | 2025-01-02 17:34:55 +0100 | [diff] [blame] | 1389 | |:horizontal| :hor[izontal] following window command work horizontally |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1390 | |:insert| :i[nsert] insert text |
| 1391 | |:iabbrev| :ia[bbrev] like ":abbrev" but for Insert mode |
| 1392 | |:iabclear| :iabc[lear] like ":abclear" but for Insert mode |
| 1393 | |:if| :if execute commands when condition met |
| 1394 | |:ijump| :ij[ump] jump to definition of identifier |
| 1395 | |:ilist| :il[ist] list lines where identifier matches |
| 1396 | |:imap| :im[ap] like ":map" but for Insert mode |
| 1397 | |:imapclear| :imapc[lear] like ":mapclear" but for Insert mode |
| 1398 | |:imenu| :ime[nu] add menu for Insert mode |
Bram Moolenaar | 191acfd | 2020-03-27 20:42:43 +0100 | [diff] [blame] | 1399 | |:import| :imp[ort] Vim9: import an item from another script |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1400 | |:inoremap| :ino[remap] like ":noremap" but for Insert mode |
| 1401 | |:inoreabbrev| :inorea[bbrev] like ":noreabbrev" but for Insert mode |
| 1402 | |:inoremenu| :inoreme[nu] like ":noremenu" but for Insert mode |
| 1403 | |:intro| :int[ro] print the introductory message |
h-east | 0c3e57b | 2025-01-02 11:00:49 +0100 | [diff] [blame] | 1404 | |:interface| :interface start of an interface declaration |
64-bitman | e08f10a | 2025-03-18 22:14:34 +0100 | [diff] [blame] | 1405 | |:iput| :ip[ut] like |:put|, but adjust the indent to the |
| 1406 | current line |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1407 | |:isearch| :is[earch] list one line where identifier matches |
| 1408 | |:isplit| :isp[lit] split window and jump to definition of |
| 1409 | identifier |
| 1410 | |:iunmap| :iu[nmap] like ":unmap" but for Insert mode |
| 1411 | |:iunabbrev| :iuna[bbrev] like ":unabbrev" but for Insert mode |
| 1412 | |:iunmenu| :iunme[nu] remove menu for Insert mode |
| 1413 | |:join| :j[oin] join lines |
| 1414 | |:jumps| :ju[mps] print the jump list |
| 1415 | |:k| :k set a mark |
Bram Moolenaar | 1756879 | 2005-07-06 22:28:03 +0000 | [diff] [blame] | 1416 | |:keepalt| :keepa[lt] following command keeps the alternate file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1417 | |:keepmarks| :kee[pmarks] following command keeps marks where they are |
Bram Moolenaar | 5302d9e | 2011-09-14 17:55:08 +0200 | [diff] [blame] | 1418 | |:keepjumps| :keepj[umps] following command keeps jumplist and marks |
Bram Moolenaar | 4b60a6c | 2013-11-14 05:48:46 +0100 | [diff] [blame] | 1419 | |:keeppatterns| :keepp[atterns] following command keeps search pattern history |
Bram Moolenaar | 28c258f | 2006-01-25 22:02:51 +0000 | [diff] [blame] | 1420 | |:lNext| :lN[ext] go to previous entry in location list |
| 1421 | |:lNfile| :lNf[ile] go to last entry in previous file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1422 | |:list| :l[ist] print lines |
Bram Moolenaar | 3ff3311 | 2019-05-03 21:56:35 +0200 | [diff] [blame] | 1423 | |:labove| :lab[ove] go to location above current line |
Bram Moolenaar | 28c258f | 2006-01-25 22:02:51 +0000 | [diff] [blame] | 1424 | |:laddexpr| :lad[dexpr] add locations from expr |
Bram Moolenaar | a37420f | 2006-02-04 22:37:47 +0000 | [diff] [blame] | 1425 | |:laddbuffer| :laddb[uffer] add locations from buffer |
Bram Moolenaar | 28c258f | 2006-01-25 22:02:51 +0000 | [diff] [blame] | 1426 | |:laddfile| :laddf[ile] add locations to current location list |
Bram Moolenaar | cf6a55c | 2019-05-05 15:02:30 +0200 | [diff] [blame] | 1427 | |:lafter| :laf[ter] go to location after current cursor |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1428 | |:last| :la[st] go to the last file in the argument list |
| 1429 | |:language| :lan[guage] set the language (locale) |
Bram Moolenaar | d3667a2 | 2006-03-16 21:35:52 +0000 | [diff] [blame] | 1430 | |:later| :lat[er] go to newer change, redo |
h-east | 0c3e57b | 2025-01-02 11:00:49 +0100 | [diff] [blame] | 1431 | |:lbefore| :lbe[fore] go to location before current cursor |
Bram Moolenaar | cf6a55c | 2019-05-05 15:02:30 +0200 | [diff] [blame] | 1432 | |:lbelow| :lbel[ow] go to location below current line |
Bram Moolenaar | 537ef08 | 2016-07-09 17:56:19 +0200 | [diff] [blame] | 1433 | |:lbottom| :lbo[ttom] scroll to the bottom of the location window |
Bram Moolenaar | 28c258f | 2006-01-25 22:02:51 +0000 | [diff] [blame] | 1434 | |:lbuffer| :lb[uffer] parse locations and jump to first location |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1435 | |:lcd| :lc[d] change directory locally |
| 1436 | |:lchdir| :lch[dir] change directory locally |
Bram Moolenaar | 28c258f | 2006-01-25 22:02:51 +0000 | [diff] [blame] | 1437 | |:lclose| :lcl[ose] close location window |
Bram Moolenaar | acb4f22 | 2016-01-10 15:59:26 +0100 | [diff] [blame] | 1438 | |:lcscope| :lcs[cope] like ":cscope" but uses location list |
Bram Moolenaar | aa23b37 | 2015-09-08 18:46:31 +0200 | [diff] [blame] | 1439 | |:ldo| :ld[o] execute command in valid location list entries |
| 1440 | |:lfdo| :lfd[o] execute command in each file in location list |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1441 | |:left| :le[ft] left align lines |
| 1442 | |:leftabove| :lefta[bove] make split window appear left or above |
Bram Moolenaar | 96cf4ba | 2021-04-24 14:15:41 +0200 | [diff] [blame] | 1443 | |:legacy| :leg[acy] make following command use legacy script syntax |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1444 | |:let| :let assign a value to a variable or option |
Bram Moolenaar | 28c258f | 2006-01-25 22:02:51 +0000 | [diff] [blame] | 1445 | |:lexpr| :lex[pr] read locations from expr and jump to first |
| 1446 | |:lfile| :lf[ile] read file with locations and jump to first |
| 1447 | |:lfirst| :lfir[st] go to the specified location, default first one |
Bram Moolenaar | c01140a | 2006-03-24 22:21:52 +0000 | [diff] [blame] | 1448 | |:lgetbuffer| :lgetb[uffer] get locations from buffer |
Bram Moolenaar | 8ab561d | 2006-03-23 22:44:10 +0000 | [diff] [blame] | 1449 | |:lgetexpr| :lgete[xpr] get locations from expr |
Bram Moolenaar | 28c258f | 2006-01-25 22:02:51 +0000 | [diff] [blame] | 1450 | |:lgetfile| :lg[etfile] read file with locations |
Bram Moolenaar | a37420f | 2006-02-04 22:37:47 +0000 | [diff] [blame] | 1451 | |:lgrep| :lgr[ep] run 'grepprg' and jump to first match |
| 1452 | |:lgrepadd| :lgrepa[dd] like :grep, but append to current list |
Bram Moolenaar | 8b6144b | 2006-02-08 09:20:24 +0000 | [diff] [blame] | 1453 | |:lhelpgrep| :lh[elpgrep] like ":helpgrep" but uses location list |
Bram Moolenaar | 42ebd06 | 2016-07-17 13:35:14 +0200 | [diff] [blame] | 1454 | |:lhistory| :lhi[story] list the location lists |
Bram Moolenaar | 28c258f | 2006-01-25 22:02:51 +0000 | [diff] [blame] | 1455 | |:ll| :ll go to specific location |
| 1456 | |:llast| :lla[st] go to the specified location, default last one |
| 1457 | |:llist| :lli[st] list all locations |
Bram Moolenaar | a37420f | 2006-02-04 22:37:47 +0000 | [diff] [blame] | 1458 | |:lmake| :lmak[e] execute external command 'makeprg' and parse |
| 1459 | error messages |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1460 | |:lmap| :lm[ap] like ":map!" but includes Lang-Arg mode |
| 1461 | |:lmapclear| :lmapc[lear] like ":mapclear!" but includes Lang-Arg mode |
Bram Moolenaar | 6ab5b84 | 2006-01-26 22:16:34 +0000 | [diff] [blame] | 1462 | |:lnext| :lne[xt] go to next location |
Bram Moolenaar | 28c258f | 2006-01-25 22:02:51 +0000 | [diff] [blame] | 1463 | |:lnewer| :lnew[er] go to newer location list |
| 1464 | |:lnfile| :lnf[ile] go to first location in next file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1465 | |:lnoremap| :ln[oremap] like ":noremap!" but includes Lang-Arg mode |
| 1466 | |:loadkeymap| :loadk[eymap] load the following keymaps until EOF |
| 1467 | |:loadview| :lo[adview] load view for current window from a file |
| 1468 | |:lockmarks| :loc[kmarks] following command keeps marks where they are |
Bram Moolenaar | 24c088a | 2005-02-02 22:55:47 +0000 | [diff] [blame] | 1469 | |:lockvar| :lockv[ar] lock variables |
Bram Moolenaar | 28c258f | 2006-01-25 22:02:51 +0000 | [diff] [blame] | 1470 | |:lolder| :lol[der] go to older location list |
h-east | 0c3e57b | 2025-01-02 11:00:49 +0100 | [diff] [blame] | 1471 | |:lopen| :lop[en] open location window |
Bram Moolenaar | 28c258f | 2006-01-25 22:02:51 +0000 | [diff] [blame] | 1472 | |:lprevious| :lp[revious] go to previous location |
| 1473 | |:lpfile| :lpf[ile] go to last location in previous file |
| 1474 | |:lrewind| :lr[ewind] go to the specified location, default first one |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1475 | |:ls| :ls list all buffers |
Bram Moolenaar | b8a7b56 | 2006-02-01 21:47:16 +0000 | [diff] [blame] | 1476 | |:ltag| :lt[ag] jump to tag and add matching tags to the |
| 1477 | location list |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1478 | |:lunmap| :lu[nmap] like ":unmap!" but includes Lang-Arg mode |
Bram Moolenaar | 0ba0429 | 2010-07-14 23:23:17 +0200 | [diff] [blame] | 1479 | |:lua| :lua execute |Lua| command |
| 1480 | |:luado| :luad[o] execute Lua command for each line |
| 1481 | |:luafile| :luaf[ile] execute |Lua| script file |
Bram Moolenaar | a37420f | 2006-02-04 22:37:47 +0000 | [diff] [blame] | 1482 | |:lvimgrep| :lv[imgrep] search for pattern in files |
| 1483 | |:lvimgrepadd| :lvimgrepa[dd] like :vimgrep, but append to current list |
Bram Moolenaar | 28c258f | 2006-01-25 22:02:51 +0000 | [diff] [blame] | 1484 | |:lwindow| :lw[indow] open or close location window |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1485 | |:move| :m[ove] move lines |
| 1486 | |:mark| :ma[rk] set a mark |
| 1487 | |:make| :mak[e] execute external command 'makeprg' and parse |
| 1488 | error messages |
| 1489 | |:map| :map show or enter a mapping |
| 1490 | |:mapclear| :mapc[lear] clear all mappings for Normal and Visual mode |
| 1491 | |:marks| :marks list all marks |
| 1492 | |:match| :mat[ch] define a match to highlight |
| 1493 | |:menu| :me[nu] enter a new menu item |
Bram Moolenaar | acb4f22 | 2016-01-10 15:59:26 +0100 | [diff] [blame] | 1494 | |:menutranslate| :menut[ranslate] add a menu translation item |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1495 | |:messages| :mes[sages] view previously displayed messages |
| 1496 | |:mkexrc| :mk[exrc] write current mappings and settings to a file |
| 1497 | |:mksession| :mks[ession] write session info to a file |
Bram Moolenaar | 78599ad | 2005-06-16 21:47:53 +0000 | [diff] [blame] | 1498 | |:mkspell| :mksp[ell] produce .spl spell file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1499 | |:mkvimrc| :mkv[imrc] write current mappings and settings to a file |
| 1500 | |:mkview| :mkvie[w] write view of current window to a file |
| 1501 | |:mode| :mod[e] show or change the screen mode |
Bram Moolenaar | 8299df9 | 2004-07-10 09:47:34 +0000 | [diff] [blame] | 1502 | |:mzscheme| :mz[scheme] execute MzScheme command |
| 1503 | |:mzfile| :mzf[ile] execute MzScheme script file |
Bram Moolenaar | b26e632 | 2010-05-22 21:34:09 +0200 | [diff] [blame] | 1504 | |:nbclose| :nbc[lose] close the current Netbeans session |
Bram Moolenaar | 1756879 | 2005-07-06 22:28:03 +0000 | [diff] [blame] | 1505 | |:nbkey| :nb[key] pass a key to Netbeans |
h-east | 0c3e57b | 2025-01-02 11:00:49 +0100 | [diff] [blame] | 1506 | |:nbstart| :nbs[tart] start a new Netbeans session |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1507 | |:next| :n[ext] go to next file in the argument list |
| 1508 | |:new| :new create a new empty window |
| 1509 | |:nmap| :nm[ap] like ":map" but for Normal mode |
| 1510 | |:nmapclear| :nmapc[lear] clear all mappings for Normal mode |
| 1511 | |:nmenu| :nme[nu] add menu for Normal mode |
| 1512 | |:nnoremap| :nn[oremap] like ":noremap" but for Normal mode |
| 1513 | |:nnoremenu| :nnoreme[nu] like ":noremenu" but for Normal mode |
Bram Moolenaar | 76f3b1a | 2014-03-27 22:30:07 +0100 | [diff] [blame] | 1514 | |:noautocmd| :noa[utocmd] following commands don't trigger autocommands |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1515 | |:noremap| :no[remap] enter a mapping that will not be remapped |
| 1516 | |:nohlsearch| :noh[lsearch] suspend 'hlsearch' highlighting |
| 1517 | |:noreabbrev| :norea[bbrev] enter an abbreviation that will not be |
| 1518 | remapped |
| 1519 | |:noremenu| :noreme[nu] enter a menu that will not be remapped |
| 1520 | |:normal| :norm[al] execute Normal mode commands |
Bram Moolenaar | 76f3b1a | 2014-03-27 22:30:07 +0100 | [diff] [blame] | 1521 | |:noswapfile| :nos[wapfile] following commands don't create a swap file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1522 | |:number| :nu[mber] print lines with line number |
| 1523 | |:nunmap| :nun[map] like ":unmap" but for Normal mode |
| 1524 | |:nunmenu| :nunme[nu] remove menu for Normal mode |
Bram Moolenaar | 8f3f58f | 2010-01-06 20:52:26 +0100 | [diff] [blame] | 1525 | |:oldfiles| :ol[dfiles] list files that have marks in the viminfo file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1526 | |:open| :o[pen] start open mode (not implemented) |
| 1527 | |:omap| :om[ap] like ":map" but for Operator-pending mode |
| 1528 | |:omapclear| :omapc[lear] remove all mappings for Operator-pending mode |
| 1529 | |:omenu| :ome[nu] add menu for Operator-pending mode |
Bram Moolenaar | 7e8fd63 | 2006-02-18 22:14:51 +0000 | [diff] [blame] | 1530 | |:only| :on[ly] close all windows except the current one |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1531 | |:onoremap| :ono[remap] like ":noremap" but for Operator-pending mode |
| 1532 | |:onoremenu| :onoreme[nu] like ":noremenu" but for Operator-pending mode |
| 1533 | |:options| :opt[ions] open the options-window |
| 1534 | |:ounmap| :ou[nmap] like ":unmap" but for Operator-pending mode |
| 1535 | |:ounmenu| :ounme[nu] remove menu for Operator-pending mode |
Bram Moolenaar | b2c0350 | 2010-07-02 20:20:09 +0200 | [diff] [blame] | 1536 | |:ownsyntax| :ow[nsyntax] set new local syntax highlight for this window |
Bram Moolenaar | 328da0d | 2016-03-04 22:22:32 +0100 | [diff] [blame] | 1537 | |:packadd| :pa[ckadd] add a plugin from 'packpath' |
Bram Moolenaar | e18c0b3 | 2016-03-20 21:08:34 +0100 | [diff] [blame] | 1538 | |:packloadall| :packl[oadall] load all packages under 'packpath' |
Yinzuo Jiang | a2a2fe8 | 2024-12-16 21:22:09 +0100 | [diff] [blame] | 1539 | |:pbuffer| :pb[uffer] edit buffer in the preview window |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1540 | |:pclose| :pc[lose] close preview window |
| 1541 | |:pedit| :ped[it] edit file in the preview window |
| 1542 | |:perl| :pe[rl] execute Perl command |
Bram Moolenaar | 05159a0 | 2005-02-26 23:04:13 +0000 | [diff] [blame] | 1543 | |:print| :p[rint] print lines |
Bram Moolenaar | 1756879 | 2005-07-06 22:28:03 +0000 | [diff] [blame] | 1544 | |:profdel| :profd[el] stop profiling a function or script |
Bram Moolenaar | 05159a0 | 2005-02-26 23:04:13 +0000 | [diff] [blame] | 1545 | |:profile| :prof[ile] profiling functions and scripts |
Bram Moolenaar | f233048 | 2008-06-24 20:19:36 +0000 | [diff] [blame] | 1546 | |:promptfind| :pro[mptfind] open GUI dialog for searching |
| 1547 | |:promptrepl| :promptr[epl] open GUI dialog for search/replace |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1548 | |:perldo| :perld[o] execute Perl command for each line |
| 1549 | |:pop| :po[p] jump to older entry in tag stack |
Bram Moolenaar | 34700a6 | 2013-03-07 13:20:54 +0100 | [diff] [blame] | 1550 | |:popup| :popu[p] popup a menu by name |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1551 | |:ppop| :pp[op] ":pop" in preview window |
| 1552 | |:preserve| :pre[serve] write all text to swap file |
| 1553 | |:previous| :prev[ious] go to previous file in argument list |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1554 | |:psearch| :ps[earch] like ":ijump" but shows match in preview window |
| 1555 | |:ptag| :pt[ag] show tag in preview window |
| 1556 | |:ptNext| :ptN[ext] |:tNext| in preview window |
| 1557 | |:ptfirst| :ptf[irst] |:trewind| in preview window |
| 1558 | |:ptjump| :ptj[ump] |:tjump| and show tag in preview window |
| 1559 | |:ptlast| :ptl[ast] |:tlast| in preview window |
| 1560 | |:ptnext| :ptn[ext] |:tnext| in preview window |
| 1561 | |:ptprevious| :ptp[revious] |:tprevious| in preview window |
| 1562 | |:ptrewind| :ptr[ewind] |:trewind| in preview window |
| 1563 | |:ptselect| :pts[elect] |:tselect| and show tag in preview window |
Bram Moolenaar | 1b5f03e | 2023-01-09 20:12:45 +0000 | [diff] [blame] | 1564 | |:public| :public prefix for a class or object member |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1565 | |:put| :pu[t] insert contents of register in the text |
| 1566 | |:pwd| :pw[d] print current directory |
Bram Moolenaar | 368373e | 2010-07-19 20:46:22 +0200 | [diff] [blame] | 1567 | |:py3| :py3 execute Python 3 command |
Bram Moolenaar | b659052 | 2010-07-21 16:00:43 +0200 | [diff] [blame] | 1568 | |:python3| :python3 same as :py3 |
Bram Moolenaar | ad3b366 | 2013-05-17 18:14:19 +0200 | [diff] [blame] | 1569 | |:py3do| :py3d[o] execute Python 3 command for each line |
Bram Moolenaar | 60aad97 | 2010-07-21 20:36:22 +0200 | [diff] [blame] | 1570 | |:py3file| :py3f[ile] execute Python 3 script file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1571 | |:python| :py[thon] execute Python command |
Bram Moolenaar | ad3b366 | 2013-05-17 18:14:19 +0200 | [diff] [blame] | 1572 | |:pydo| :pyd[o] execute Python command for each line |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1573 | |:pyfile| :pyf[ile] execute Python script file |
Bram Moolenaar | f42dd3c | 2017-01-28 16:06:38 +0100 | [diff] [blame] | 1574 | |:pyx| :pyx execute |python_x| command |
| 1575 | |:pythonx| :pythonx same as :pyx |
| 1576 | |:pyxdo| :pyxd[o] execute |python_x| command for each line |
| 1577 | |:pyxfile| :pyxf[ile] execute |python_x| script file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1578 | |:quit| :q[uit] quit current window (when one window quit Vim) |
| 1579 | |:quitall| :quita[ll] quit Vim |
| 1580 | |:qall| :qa[ll] quit Vim |
| 1581 | |:read| :r[ead] read file into the text |
| 1582 | |:recover| :rec[over] recover a file from a swap file |
| 1583 | |:redo| :red[o] redo one undone change |
| 1584 | |:redir| :redi[r] redirect messages to a file or register |
Bram Moolenaar | d09091d | 2019-01-17 16:07:22 +0100 | [diff] [blame] | 1585 | |:redraw| :redr[aw] force a redraw of the display |
| 1586 | |:redrawstatus| :redraws[tatus] force a redraw of the status line(s) |
| 1587 | |:redrawtabline| :redrawt[abline] force a redraw of the tabline |
Naruhiko Nishino | be5bd4d | 2025-05-14 21:20:28 +0200 | [diff] [blame] | 1588 | |:redrawtabpanel| :redrawtabp[anel] force a redraw of the tabpanel |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1589 | |:registers| :reg[isters] display the contents of registers |
| 1590 | |:resize| :res[ize] change current window height |
| 1591 | |:retab| :ret[ab] change tab size |
| 1592 | |:return| :retu[rn] return from a user function |
| 1593 | |:rewind| :rew[ind] go to the first file in the argument list |
| 1594 | |:right| :ri[ght] right align text |
| 1595 | |:rightbelow| :rightb[elow] make split window appear right or below |
| 1596 | |:ruby| :rub[y] execute Ruby command |
| 1597 | |:rubydo| :rubyd[o] execute Ruby command for each line |
| 1598 | |:rubyfile| :rubyf[ile] execute Ruby script file |
Bram Moolenaar | 1d68952 | 2010-05-28 20:54:39 +0200 | [diff] [blame] | 1599 | |:rundo| :rund[o] read undo information from a file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1600 | |:runtime| :ru[ntime] source vim scripts in 'runtimepath' |
| 1601 | |:rviminfo| :rv[iminfo] read from viminfo file |
| 1602 | |:substitute| :s[ubstitute] find and replace text |
| 1603 | |:sNext| :sN[ext] split window and go to previous file in |
| 1604 | argument list |
Bram Moolenaar | 1756879 | 2005-07-06 22:28:03 +0000 | [diff] [blame] | 1605 | |:sandbox| :san[dbox] execute a command in the sandbox |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1606 | |:sargument| :sa[rgument] split window and go to specific file in |
| 1607 | argument list |
| 1608 | |:sall| :sal[l] open a window for each file in argument list |
| 1609 | |:saveas| :sav[eas] save file under another name. |
| 1610 | |:sbuffer| :sb[uffer] split window and go to specific file in the |
| 1611 | buffer list |
| 1612 | |:sbNext| :sbN[ext] split window and go to previous file in the |
| 1613 | buffer list |
| 1614 | |:sball| :sba[ll] open a window for each file in the buffer list |
| 1615 | |:sbfirst| :sbf[irst] split window and go to first file in the |
| 1616 | buffer list |
| 1617 | |:sblast| :sbl[ast] split window and go to last file in buffer |
| 1618 | list |
| 1619 | |:sbmodified| :sbm[odified] split window and go to modified file in the |
| 1620 | buffer list |
| 1621 | |:sbnext| :sbn[ext] split window and go to next file in the buffer |
| 1622 | list |
| 1623 | |:sbprevious| :sbp[revious] split window and go to previous file in the |
| 1624 | buffer list |
| 1625 | |:sbrewind| :sbr[ewind] split window and go to first file in the |
| 1626 | buffer list |
Bram Moolenaar | 8feef4f | 2015-01-07 16:57:10 +0100 | [diff] [blame] | 1627 | |:scriptnames| :scr[iptnames] list names of all sourced Vim scripts |
Bram Moolenaar | 62e1bb4 | 2019-04-08 16:25:07 +0200 | [diff] [blame] | 1628 | |:scriptencoding| :scripte[ncoding] encoding used in sourced Vim script |
| 1629 | |:scriptversion| :scriptv[ersion] version of Vim script used |
Bram Moolenaar | 6496966 | 2005-12-14 21:59:55 +0000 | [diff] [blame] | 1630 | |:scscope| :scs[cope] split window and execute cscope command |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1631 | |:set| :se[t] show or set options |
| 1632 | |:setfiletype| :setf[iletype] set 'filetype', unless it was set already |
| 1633 | |:setglobal| :setg[lobal] show global values of options |
| 1634 | |:setlocal| :setl[ocal] show or set options locally |
| 1635 | |:sfind| :sf[ind] split current window and edit file in 'path' |
| 1636 | |:sfirst| :sfir[st] split window and go to first file in the |
| 1637 | argument list |
| 1638 | |:shell| :sh[ell] escape to a shell |
| 1639 | |:simalt| :sim[alt] Win32 GUI: simulate Windows ALT key |
| 1640 | |:sign| :sig[n] manipulate signs |
Bram Moolenaar | 8f3f58f | 2010-01-06 20:52:26 +0100 | [diff] [blame] | 1641 | |:silent| :sil[ent] run a command silently |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1642 | |:sleep| :sl[eep] do nothing for a few seconds |
Bram Moolenaar | e2edc2e | 2021-01-16 20:21:23 +0100 | [diff] [blame] | 1643 | |:sleep!| :sl[eep]! do nothing for a few seconds, without the |
| 1644 | cursor visible |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1645 | |:slast| :sla[st] split window and go to last file in the |
| 1646 | argument list |
| 1647 | |:smagic| :sm[agic] :substitute with 'magic' |
Bram Moolenaar | 34700a6 | 2013-03-07 13:20:54 +0100 | [diff] [blame] | 1648 | |:smap| :smap like ":map" but for Select mode |
Bram Moolenaar | 371d540 | 2006-03-20 21:47:49 +0000 | [diff] [blame] | 1649 | |:smapclear| :smapc[lear] remove all mappings for Select mode |
| 1650 | |:smenu| :sme[nu] add menu for Select mode |
Bram Moolenaar | acb4f22 | 2016-01-10 15:59:26 +0100 | [diff] [blame] | 1651 | |:smile| :smi[le] make the user happy |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1652 | |:snext| :sn[ext] split window and go to next file in the |
| 1653 | argument list |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1654 | |:snomagic| :sno[magic] :substitute with 'nomagic' |
Bram Moolenaar | 371d540 | 2006-03-20 21:47:49 +0000 | [diff] [blame] | 1655 | |:snoremap| :snor[emap] like ":noremap" but for Select mode |
| 1656 | |:snoremenu| :snoreme[nu] like ":noremenu" but for Select mode |
Bram Moolenaar | f95dc3b | 2005-05-22 22:02:25 +0000 | [diff] [blame] | 1657 | |:sort| :sor[t] sort lines |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1658 | |:source| :so[urce] read Vim or Ex commands from a file |
Bram Moolenaar | f81b0fe | 2005-06-23 22:27:26 +0000 | [diff] [blame] | 1659 | |:spelldump| :spelld[ump] split window and fill with all correct words |
Bram Moolenaar | 78599ad | 2005-06-16 21:47:53 +0000 | [diff] [blame] | 1660 | |:spellgood| :spe[llgood] add good word for spelling |
Bram Moolenaar | 362e1a3 | 2006-03-06 23:29:24 +0000 | [diff] [blame] | 1661 | |:spellinfo| :spelli[nfo] show info about loaded spell files |
Bram Moolenaar | 56c860c | 2019-08-17 20:09:31 +0200 | [diff] [blame] | 1662 | |:spellrare| :spellra[re] add rare word for spelling |
Bram Moolenaar | 43abc52 | 2005-12-10 20:15:02 +0000 | [diff] [blame] | 1663 | |:spellrepall| :spellr[epall] replace all bad words like last |z=| |
Bram Moolenaar | d0131a8 | 2006-03-04 21:46:13 +0000 | [diff] [blame] | 1664 | |:spellundo| :spellu[ndo] remove good or bad word |
Bram Moolenaar | 78599ad | 2005-06-16 21:47:53 +0000 | [diff] [blame] | 1665 | |:spellwrong| :spellw[rong] add spelling mistake |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1666 | |:split| :sp[lit] split current window |
| 1667 | |:sprevious| :spr[evious] split window and go to previous file in the |
| 1668 | argument list |
| 1669 | |:srewind| :sre[wind] split window and go to first file in the |
| 1670 | argument list |
| 1671 | |:stop| :st[op] suspend the editor or escape to a shell |
| 1672 | |:stag| :sta[g] split window and jump to a tag |
| 1673 | |:startinsert| :star[tinsert] start Insert mode |
Bram Moolenaar | acb4f22 | 2016-01-10 15:59:26 +0100 | [diff] [blame] | 1674 | |:startgreplace| :startg[replace] start Virtual Replace mode |
Bram Moolenaar | 325b7a2 | 2004-07-05 15:58:32 +0000 | [diff] [blame] | 1675 | |:startreplace| :startr[eplace] start Replace mode |
Bram Moolenaar | 1b5f03e | 2023-01-09 20:12:45 +0000 | [diff] [blame] | 1676 | |:static| :static prefix for a class member or function |
Bram Moolenaar | f233048 | 2008-06-24 20:19:36 +0000 | [diff] [blame] | 1677 | |:stopinsert| :stopi[nsert] stop Insert mode |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1678 | |:stjump| :stj[ump] do ":tjump" and split window |
| 1679 | |:stselect| :sts[elect] do ":tselect" and split window |
| 1680 | |:sunhide| :sun[hide] same as ":unhide" |
Bram Moolenaar | 371d540 | 2006-03-20 21:47:49 +0000 | [diff] [blame] | 1681 | |:sunmap| :sunm[ap] like ":unmap" but for Select mode |
| 1682 | |:sunmenu| :sunme[nu] remove menu for Select mode |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1683 | |:suspend| :sus[pend] same as ":stop" |
| 1684 | |:sview| :sv[iew] split window and edit file read-only |
| 1685 | |:swapname| :sw[apname] show the name of the current swap file |
| 1686 | |:syntax| :sy[ntax] syntax highlighting |
Bram Moolenaar | 203d04d | 2013-06-06 21:36:40 +0200 | [diff] [blame] | 1687 | |:syntime| :synti[me] measure syntax highlighting speed |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1688 | |:syncbind| :sync[bind] sync scroll binding |
| 1689 | |:t| :t same as ":copy" |
| 1690 | |:tNext| :tN[ext] jump to previous matching tag |
Bram Moolenaar | 80a94a5 | 2006-02-23 21:26:58 +0000 | [diff] [blame] | 1691 | |:tabNext| :tabN[ext] go to previous tab page |
Bram Moolenaar | 7e8fd63 | 2006-02-18 22:14:51 +0000 | [diff] [blame] | 1692 | |:tabclose| :tabc[lose] close current tab page |
h-east | 0c3e57b | 2025-01-02 11:00:49 +0100 | [diff] [blame] | 1693 | |:tabdo| :tabd[o] execute command in each tab page |
Bram Moolenaar | 7e8fd63 | 2006-02-18 22:14:51 +0000 | [diff] [blame] | 1694 | |:tabedit| :tabe[dit] edit a file in a new tab page |
| 1695 | |:tabfind| :tabf[ind] find file in 'path', edit it in a new tab page |
Bram Moolenaar | 13d5aee | 2016-01-21 23:36:05 +0100 | [diff] [blame] | 1696 | |:tabfirst| :tabfir[st] go to first tab page |
| 1697 | |:tablast| :tabl[ast] go to last tab page |
Bram Moolenaar | 80a94a5 | 2006-02-23 21:26:58 +0000 | [diff] [blame] | 1698 | |:tabmove| :tabm[ove] move tab page to other position |
| 1699 | |:tabnew| :tabnew edit a file in a new tab page |
| 1700 | |:tabnext| :tabn[ext] go to next tab page |
Bram Moolenaar | 7e8fd63 | 2006-02-18 22:14:51 +0000 | [diff] [blame] | 1701 | |:tabonly| :tabo[nly] close all tab pages except the current one |
Bram Moolenaar | 80a94a5 | 2006-02-23 21:26:58 +0000 | [diff] [blame] | 1702 | |:tabprevious| :tabp[revious] go to previous tab page |
Bram Moolenaar | 13d5aee | 2016-01-21 23:36:05 +0100 | [diff] [blame] | 1703 | |:tabrewind| :tabr[ewind] go to first tab page |
Bram Moolenaar | 7e8fd63 | 2006-02-18 22:14:51 +0000 | [diff] [blame] | 1704 | |:tabs| :tabs list the tab pages and what they contain |
Bram Moolenaar | 80a94a5 | 2006-02-23 21:26:58 +0000 | [diff] [blame] | 1705 | |:tab| :tab create new tab when opening new window |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1706 | |:tag| :ta[g] jump to tag |
| 1707 | |:tags| :tags show the contents of the tag stack |
Bram Moolenaar | d2ea7cf | 2021-05-30 20:54:13 +0200 | [diff] [blame] | 1708 | |:tcd| :tc[d] change directory for tab page |
Bram Moolenaar | 00aa069 | 2019-04-27 20:37:57 +0200 | [diff] [blame] | 1709 | |:tchdir| :tch[dir] change directory for tab page |
Bram Moolenaar | d2ea7cf | 2021-05-30 20:54:13 +0200 | [diff] [blame] | 1710 | |:tcl| :tcl execute Tcl command |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1711 | |:tcldo| :tcld[o] execute Tcl command for each line |
| 1712 | |:tclfile| :tclf[ile] execute Tcl script file |
| 1713 | |:tearoff| :te[aroff] tear-off a menu |
Bram Moolenaar | 74675a6 | 2017-07-15 13:53:23 +0200 | [diff] [blame] | 1714 | |:terminal| :ter[minal] open a terminal window |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1715 | |:tfirst| :tf[irst] jump to first matching tag |
| 1716 | |:throw| :th[row] throw an exception |
h-east | 0c3e57b | 2025-01-02 11:00:49 +0100 | [diff] [blame] | 1717 | |:this| :this prefix for an object member during |
| 1718 | initialization (e.g. on |new()|) |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1719 | |:tjump| :tj[ump] like ":tselect", but jump directly when there |
| 1720 | is only one match |
| 1721 | |:tlast| :tl[ast] jump to last matching tag |
Bram Moolenaar | 4c5d815 | 2018-10-19 22:36:53 +0200 | [diff] [blame] | 1722 | |:tlmenu| :tlm[enu] add menu for Terminal-Job mode |
| 1723 | |:tlnoremenu| :tln[oremenu] like ":noremenu" but for Terminal-Job mode |
| 1724 | |:tlunmenu| :tlu[nmenu] remove menu for Terminal-Job mode |
Bram Moolenaar | 37c64c7 | 2017-09-19 22:06:03 +0200 | [diff] [blame] | 1725 | |:tmapclear| :tmapc[lear] remove all mappings for Terminal-Job mode |
| 1726 | |:tmap| :tma[p] like ":map" but for Terminal-Job mode |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1727 | |:tmenu| :tm[enu] define menu tooltip |
| 1728 | |:tnext| :tn[ext] jump to next matching tag |
Bram Moolenaar | 37c64c7 | 2017-09-19 22:06:03 +0200 | [diff] [blame] | 1729 | |:tnoremap| :tno[remap] like ":noremap" but for Terminal-Job mode |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1730 | |:topleft| :to[pleft] make split window appear at top or far left |
| 1731 | |:tprevious| :tp[revious] jump to previous matching tag |
| 1732 | |:trewind| :tr[ewind] jump to first matching tag |
| 1733 | |:try| :try execute commands, abort on error or exception |
| 1734 | |:tselect| :ts[elect] list matching tags and select one |
Bram Moolenaar | 37c64c7 | 2017-09-19 22:06:03 +0200 | [diff] [blame] | 1735 | |:tunmap| :tunma[p] like ":unmap" but for Terminal-Job mode |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1736 | |:tunmenu| :tu[nmenu] remove menu tooltip |
h-east | 0c3e57b | 2025-01-02 11:00:49 +0100 | [diff] [blame] | 1737 | |:type| :type create a type alias |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1738 | |:undo| :u[ndo] undo last change(s) |
Bram Moolenaar | b388adb | 2006-02-28 23:50:17 +0000 | [diff] [blame] | 1739 | |:undojoin| :undoj[oin] join next change with previous undo block |
Bram Moolenaar | d3667a2 | 2006-03-16 21:35:52 +0000 | [diff] [blame] | 1740 | |:undolist| :undol[ist] list leafs of the undo tree |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1741 | |:unabbreviate| :una[bbreviate] remove abbreviation |
| 1742 | |:unhide| :unh[ide] open a window for each loaded file in the |
| 1743 | buffer list |
Hirohito Higashi | 74f0a77 | 2025-06-23 21:42:36 +0200 | [diff] [blame] | 1744 | |:uniq| :uni[q] uniq lines |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1745 | |:unlet| :unl[et] delete variable |
Bram Moolenaar | 24c088a | 2005-02-02 22:55:47 +0000 | [diff] [blame] | 1746 | |:unlockvar| :unlo[ckvar] unlock variables |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1747 | |:unmap| :unm[ap] remove mapping |
| 1748 | |:unmenu| :unme[nu] remove menu |
Bram Moolenaar | 8f3f58f | 2010-01-06 20:52:26 +0100 | [diff] [blame] | 1749 | |:unsilent| :uns[ilent] run a command not silently |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1750 | |:update| :up[date] write buffer if modified |
| 1751 | |:vglobal| :v[global] execute commands for not matching lines |
Bram Moolenaar | 4f4d51a | 2020-10-11 13:57:40 +0200 | [diff] [blame] | 1752 | |:var| :var variable declaration in Vim9 |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1753 | |:version| :ve[rsion] print version number and other info |
| 1754 | |:verbose| :verb[ose] execute command with 'verbose' set |
| 1755 | |:vertical| :vert[ical] make following command split vertically |
Bram Moolenaar | 9faec4e | 2021-02-27 16:38:07 +0100 | [diff] [blame] | 1756 | |:vim9cmd| :vim9[cmd] make following command use Vim9 script syntax |
| 1757 | |:vim9script| :vim9s[cript] indicates Vim9 script file |
Bram Moolenaar | 1756879 | 2005-07-06 22:28:03 +0000 | [diff] [blame] | 1758 | |:vimgrep| :vim[grep] search for pattern in files |
| 1759 | |:vimgrepadd| :vimgrepa[dd] like :vimgrep, but append to current list |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1760 | |:visual| :vi[sual] same as ":edit", but turns off "Ex" mode |
Bram Moolenaar | b5bf5b8 | 2004-12-24 14:35:23 +0000 | [diff] [blame] | 1761 | |:viusage| :viu[sage] overview of Normal mode commands |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1762 | |:view| :vie[w] edit a file read-only |
Bram Moolenaar | 371d540 | 2006-03-20 21:47:49 +0000 | [diff] [blame] | 1763 | |:vmap| :vm[ap] like ":map" but for Visual+Select mode |
| 1764 | |:vmapclear| :vmapc[lear] remove all mappings for Visual+Select mode |
| 1765 | |:vmenu| :vme[nu] add menu for Visual+Select mode |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1766 | |:vnew| :vne[w] create a new empty window, vertically split |
Bram Moolenaar | 371d540 | 2006-03-20 21:47:49 +0000 | [diff] [blame] | 1767 | |:vnoremap| :vn[oremap] like ":noremap" but for Visual+Select mode |
| 1768 | |:vnoremenu| :vnoreme[nu] like ":noremenu" but for Visual+Select mode |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1769 | |:vsplit| :vs[plit] split current window vertically |
Bram Moolenaar | 371d540 | 2006-03-20 21:47:49 +0000 | [diff] [blame] | 1770 | |:vunmap| :vu[nmap] like ":unmap" but for Visual+Select mode |
| 1771 | |:vunmenu| :vunme[nu] remove menu for Visual+Select mode |
h-east | 0c3e57b | 2025-01-02 11:00:49 +0100 | [diff] [blame] | 1772 | |:windo| :wind[o] execute command in each window |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1773 | |:write| :w[rite] write to a file |
| 1774 | |:wNext| :wN[ext] write to a file and go to previous file in |
| 1775 | argument list |
| 1776 | |:wall| :wa[ll] write all (changed) buffers |
| 1777 | |:while| :wh[ile] execute loop for as long as condition met |
| 1778 | |:winsize| :wi[nsize] get or set window size (obsolete) |
| 1779 | |:wincmd| :winc[md] execute a Window (CTRL-W) command |
| 1780 | |:winpos| :winp[os] get or set window position |
Foxe Chen | b90c239 | 2025-06-27 21:10:35 +0200 | [diff] [blame] | 1781 | |:wlrestore| :wl[restore] restore the Wayland compositor connection |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1782 | |:wnext| :wn[ext] write to a file and go to next file in |
| 1783 | argument list |
| 1784 | |:wprevious| :wp[revious] write to a file and go to previous file in |
| 1785 | argument list |
| 1786 | |:wq| :wq write to a file and quit window or Vim |
| 1787 | |:wqall| :wqa[ll] write all changed buffers and quit Vim |
Bram Moolenaar | 1d68952 | 2010-05-28 20:54:39 +0200 | [diff] [blame] | 1788 | |:wundo| :wu[ndo] write undo information to a file |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1789 | |:wviminfo| :wv[iminfo] write to viminfo file |
Bram Moolenaar | 47e1395 | 2020-05-12 22:49:12 +0200 | [diff] [blame] | 1790 | |:xit| :x[it] write if buffer changed and close window |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1791 | |:xall| :xa[ll] same as ":wqall" |
Bram Moolenaar | 371d540 | 2006-03-20 21:47:49 +0000 | [diff] [blame] | 1792 | |:xmapclear| :xmapc[lear] remove all mappings for Visual mode |
| 1793 | |:xmap| :xm[ap] like ":map" but for Visual mode |
| 1794 | |:xmenu| :xme[nu] add menu for Visual mode |
Bram Moolenaar | d4aa83a | 2019-05-09 18:59:31 +0200 | [diff] [blame] | 1795 | |:xrestore| :xr[estore] restores the X server connection |
Bram Moolenaar | 371d540 | 2006-03-20 21:47:49 +0000 | [diff] [blame] | 1796 | |:xnoremap| :xn[oremap] like ":noremap" but for Visual mode |
| 1797 | |:xnoremenu| :xnoreme[nu] like ":noremenu" but for Visual mode |
| 1798 | |:xunmap| :xu[nmap] like ":unmap" but for Visual mode |
| 1799 | |:xunmenu| :xunme[nu] remove menu for Visual mode |
Bram Moolenaar | 071d427 | 2004-06-13 20:20:40 +0000 | [diff] [blame] | 1800 | |:yank| :y[ank] yank lines into a register |
| 1801 | |:z| :z print some lines |
| 1802 | |:~| :~ repeat last ":substitute" |
| 1803 | |
Bram Moolenaar | 371d540 | 2006-03-20 21:47:49 +0000 | [diff] [blame] | 1804 | |
Bram Moolenaar | 91f84f6 | 2018-07-29 15:07:52 +0200 | [diff] [blame] | 1805 | vim:tw=78:ts=8:noet:ft=help:norl: |