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