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