|
1 | | -*motion.txt* For Vim version 9.1. Last change: 2025 Aug 06 |
| 1 | +*motion.txt* For Vim version 9.1. Last change: 2025 Oct 12 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -66,7 +66,7 @@ the two counts are multiplied. For example: "2d3w" deletes six words. |
66 | 66 | *operator-doubled* |
67 | 67 | When doubling the operator it operates on a line. When using a count, before |
68 | 68 | or after the first character, that many lines are operated upon. Thus `3dd` |
69 | | -deletes three lines. A count before and after the first character is |
| 69 | +deletes three lines. A count before and after the first character is |
70 | 70 | multiplied, thus `2y3y` yanks six lines. |
71 | 71 | *operator-resulting-pos* |
72 | 72 | After applying the operator the cursor is mostly left at the start of the text |
@@ -300,11 +300,11 @@ T{char} Till after [count]'th occurrence of {char} to the |
300 | 300 | {char} can be entered like with the |f| command. |
301 | 301 |
|
302 | 302 | *;* |
303 | | -; Repeat latest f, t, F or T [count] times. See |cpo-;| |
| 303 | +; Repeat latest f, t, F or T [count] times. See |cpo-;| |
304 | 304 |
|
305 | 305 | *,* |
306 | 306 | , Repeat latest f, t, F or T in opposite direction |
307 | | - [count] times. See also |cpo-;| |
| 307 | + [count] times. See also |cpo-;| |
308 | 308 |
|
309 | 309 | ============================================================================== |
310 | 310 | 3. Up-down motions *up-down-motions* |
@@ -625,11 +625,11 @@ ab "a block", select [count] blocks, from "[count] [(" to |
625 | 625 |
|
626 | 626 | i) *v_i)* *i)* *i(* |
627 | 627 | i( *vib* *v_ib* *v_i(* *ib* |
628 | | -ib "inner block", select [count] blocks, from "[count] [(" |
629 | | - to the matching ')', excluding the '(' and ')' (see |
630 | | - |[(|). If the cursor is not inside a () block, then |
631 | | - find the next "(". It's an error to select an empty |
632 | | - inner block like "()". The |cpo-M| option flag |
| 628 | +ib "inner block", select [count] blocks, from "[count] |
| 629 | + [(" to the matching ')', excluding the '(' and ')' |
| 630 | + (see |[(|). If the cursor is not inside a () block, |
| 631 | + then find the next "(". It's an error to select an |
| 632 | + empty inner block like "()". The |cpo-M| option flag |
633 | 633 | is used to handle escaped parenthesis. |
634 | 634 | When used in Visual mode it is made characterwise. |
635 | 635 |
|
@@ -673,11 +673,11 @@ aB "a Block", select [count] Blocks, from "[count] [{" to |
673 | 673 |
|
674 | 674 | i} *v_i}* *i}* *i{* |
675 | 675 | i{ *v_iB* *v_i{* *iB* |
676 | | -iB "inner Block", select [count] Blocks, from "[count] [{" |
677 | | - to the matching '}', excluding the '{' and '}' (see |
678 | | - |[{|). It's an error to select an empty inner block |
679 | | - like "{}". The |cpo-M| option flag is used to handle |
680 | | - escaped braces. |
| 676 | +iB "inner Block", select [count] Blocks, from "[count] |
| 677 | + [{" to the matching '}', excluding the '{' and '}' |
| 678 | + (see |[{|). It's an error to select an empty inner |
| 679 | + block like "{}". The |cpo-M| option flag is used to |
| 680 | + handle escaped braces. |
681 | 681 | When used in Visual mode it is made characterwise. |
682 | 682 |
|
683 | 683 | a" *v_aquote* *aquote* |
@@ -876,9 +876,9 @@ buffer list. If you remove the file from the buffer list, all its marks are |
876 | 876 | lost. If you delete a line that contains a mark, that mark is erased. |
877 | 877 |
|
878 | 878 | Lowercase marks can be used in combination with operators. For example: "d't" |
879 | | -deletes the lines from the cursor position to mark 't'. Hint: Use mark 't' for |
880 | | -Top, 'b' for Bottom, etc.. Lowercase marks are restored when using undo and |
881 | | -redo. |
| 879 | +deletes the lines from the cursor position to mark 't'. Hint: Use mark 't' |
| 880 | +for Top, 'b' for Bottom, etc.. Lowercase marks are restored when using undo |
| 881 | +and redo. |
882 | 882 |
|
883 | 883 | Uppercase marks 'A to 'Z include the file name. You can use them to jump from |
884 | 884 | file to file. You can only use an uppercase mark with an operator if the mark |
@@ -1159,9 +1159,9 @@ stored in the viminfo file and restored when starting Vim. |
1159 | 1159 | *jumplist-stack* |
1160 | 1160 | When 'jumpoptions' option includes "stack", the jumplist behaves like the tag |
1161 | 1161 | stack. When jumping to a new location from the middle of the jumplist, the |
1162 | | -locations after the current position will be discarded. With this option set |
1163 | | -you can move through a tree of jump locations. When going back up a branch and |
1164 | | -then down another branch, CTRL-O still takes you further up the tree. |
| 1162 | +locations after the current position will be discarded. With this option set |
| 1163 | +you can move through a tree of jump locations. When going back up a branch |
| 1164 | +and then down another branch, CTRL-O still takes you further up the tree. |
1165 | 1165 |
|
1166 | 1166 | Given a jumplist like the following in which CTRL-O has been used to move back |
1167 | 1167 | three times to location X: > |
@@ -1263,7 +1263,7 @@ remembered. |
1263 | 1263 |
|
1264 | 1264 | *%* |
1265 | 1265 | % Find the next item in this line after or under the |
1266 | | - cursor and jump to its match. |inclusive| motion. |
| 1266 | + cursor and jump to its match. |inclusive| motion. |
1267 | 1267 | Items can be: |
1268 | 1268 | ([{}]) parenthesis or (curly/square) brackets |
1269 | 1269 | (this can be changed with the |
@@ -1334,13 +1334,13 @@ bring you back to the switch statement. |
1334 | 1334 | similar structured language). When not after the |
1335 | 1335 | start of a method, jump to the start or end of the |
1336 | 1336 | class. When no '{' is found before the cursor this is |
1337 | | - an error. |exclusive| motion. |
| 1337 | + an error. |exclusive| motion. |
1338 | 1338 | *[M* |
1339 | 1339 | [M Go to [count] previous end of a method (for Java or |
1340 | 1340 | similar structured language). When not after the |
1341 | 1341 | end of a method, jump to the start or end of the |
1342 | 1342 | class. When no '}' is found before the cursor this is |
1343 | | - an error. |exclusive| motion. |
| 1343 | + an error. |exclusive| motion. |
1344 | 1344 |
|
1345 | 1345 | The above four commands assume that the file contains a class with methods. |
1346 | 1346 | The class definition is surrounded in '{' and '}'. Each method in the class |
@@ -1375,7 +1375,8 @@ Using "3[m" will jump to the start of the class. |
1375 | 1375 |
|
1376 | 1376 | These two commands work in C programs that contain #if/#else/#endif |
1377 | 1377 | constructs. It brings you to the start or end of the #if/#else/#endif where |
1378 | | -the current line is included. You can then use "%" to go to the matching line. |
| 1378 | +the current line is included. You can then use "%" to go to the matching |
| 1379 | +line. |
1379 | 1380 |
|
1380 | 1381 | *[star* *[/* |
1381 | 1382 | [* or [/ Go to [count] previous start of a C comment "/*". |
|
0 commit comments