1- *motion.txt*     For Vim version 8.2.   Last change: 2020 Oct 18 
1+ *motion.txt*     For Vim version 8.2.   Last change: 2021 Mar 28 
22
33
44		  VIM REFERENCE MANUAL    by Bram Moolenaar  
@@ -942,8 +942,7 @@ These commands are not marks themselves, but jump to a mark:
942942			line.
943943
944944							*]`* 
945- ]`			[count]  times to lowercase mark after the cursor. {not
946- 			in Vi}
945+ ]`			[count]  times to lowercase mark after the cursor.
947946
948947							*['* 
949948['			[count]  times to previous line with a lowercase mark
@@ -1037,6 +1036,12 @@ CTRL-I			Go to [count] newer cursor position in jump list
10371036			(not a motion command).
10381037			{not available without the | +jumplist |  feature}
10391038
1039+ 			NOTE: In the GUI and in a terminal supporting
1040+ 			| modifyOtherKeys | , CTRL-I  can be mapped separately
1041+ 			from <Tab> , on the condition that CTRL-I  is
1042+ 			mapped before <Tab> , otherwise the mapping applies to
1043+ 			both.
1044+ 
10401045							*:ju*  *:jumps* 
10411046:ju[mps]		Print the jump list (not a motion command).
10421047			{not available without the | +jumplist |  feature}
@@ -1054,11 +1059,11 @@ The maximum number of entries is fixed at 100.
10541059
10551060For example, after three jump commands you have this jump list:
10561061
1057-   jump line  col file/text ~  
1058-     3	  1    0 some text ~  
1059-     2	 70    0 another line ~  
1060-     1  1154   23 end. ~  
1061-  > ~  
1062+      jump line  col file/text ~  
1063+        3	  1    0 some text ~  
1064+        2	 70    0 another line ~  
1065+        1  1154   23 end. ~  
1066+     > ~  
10621067
10631068The "file/text" column shows the file name, or the text at the jump if it is
10641069in the current file (an indent is removed and a long line is truncated to fit
@@ -1067,11 +1072,11 @@ in the window).
10671072You are currently in line 1167.  If you then use the CTRL-O  command, the
10681073cursor is put in line 1154.  This results in:
10691074
1070-   jump line  col file/text ~  
1071-     2	  1    0 some text ~  
1072-     1	 70    0 another line ~  
1073-  >  0  1154   23 end. ~  
1074-     1  1167    0 foo bar ~  
1075+      jump line  col file/text ~  
1076+        2	  1    0 some text ~  
1077+        1	 70    0 another line ~  
1078+     >  0  1154   23 end. ~  
1079+        1  1167    0 foo bar ~  
10751080
10761081The pointer will be set at the last used jump position.  The next CTRL-O 
10771082command will use the entry above it, the next CTRL-I  command will use the
@@ -1098,12 +1103,12 @@ that calling setpos() does not do this.
10981103After the CTRL-O  command that got you into line 1154 you could give another
10991104jump command (e.g., "G").  The jump list would then become:
11001105
1101-   jump line  col file/text ~  
1102-     4	  1    0 some text ~  
1103-     3	 70    0 another line ~  
1104-     2  1167    0 foo bar ~  
1105-     1  1154   23 end. ~  
1106-  > ~  
1106+      jump line  col file/text ~  
1107+        4	  1    0 some text ~  
1108+        3	 70    0 another line ~  
1109+        2  1167    0 foo bar ~  
1110+        1  1154   23 end. ~  
1111+     > ~  
11071112
11081113The line numbers will be adjusted for deleted and inserted lines.  This fails
11091114if you stop editing a file without writing, like with ":n!".
@@ -1152,7 +1157,7 @@ Note that when text has been inserted or deleted the cursor position might be
11521157a bit different from the position of the change.  Especially when lines have
11531158been deleted.
11541159
1155- When the | :keepjumps |  command modifier is used the position of a change is not
1160+ When the ` :keepjumps `   command modifier is used the position of a change is not
11561161remembered.
11571162
11581163							*:changes* 
@@ -1193,7 +1198,7 @@ remembered.
11931198			#if, #ifdef, #else, #elif, #endif
11941199					C preprocessor conditionals (when the
11951200					cursor is on the # or no ([{
1196- 					following)
1201+ 					is  following)
11971202			For other items the matchit plugin can be used, see
11981203			| matchit-install | .  This plugin also helps to skip
11991204			matches in comments.
@@ -1222,19 +1227,16 @@ remembered.
12221227			#if/#else/#endif makes the movement linewise.
12231228
12241229						*[(* 
1225- [(			go  to [count]  previous unmatched '('.
1230+ [(			Go  to [count]  previous unmatched '('.
12261231			| exclusive |  motion.
1227- 
12281232						*[{* 
1229- [{			go  to [count]  previous unmatched '{'.
1233+ [{			Go  to [count]  previous unmatched '{'.
12301234			| exclusive |  motion.
1231- 
12321235						*])* 
1233- ])			go  to [count]  next unmatched ')'.
1236+ ])			Go  to [count]  next unmatched ')'.
12341237			| exclusive |  motion.
1235- 
12361238						*]}* 
1237- ]}			go  to [count]  next unmatched '}'.
1239+ ]}			Go  to [count]  next unmatched '}'.
12381240			| exclusive |  motion.
12391241
12401242The above four commands can be used to go to the start or end of the current
@@ -1268,7 +1270,7 @@ bring you back to the switch statement.
12681270			class.  When no '}' is found before the cursor this is
12691271			an error. | exclusive |  motion.
12701272
1271- The above two  commands assume that the file contains a class with methods.
1273+ The above four  commands assume that the file contains a class with methods.
12721274The class definition is surrounded in '{' and '}'.  Each method in the class
12731275is also surrounded with '{' and '}'.  This applies to the Java language.  The
12741276file looks like this: > 
@@ -1282,29 +1284,33 @@ file looks like this: >
12821284			body_two(); 
12831285		} 
12841286	} 
1287+ 
1288+  [To try this out copy the text and put it in a new buffer, the help text above
1289+ confuses the jump commands]
1290+ 
12851291Starting with the cursor on "body_two()", using "[m" will jump to the '{' at
12861292the start of "method_two()" (obviously this is much more useful when the
12871293method is long!).  Using "2[m" will jump to the start of "method_one()".
12881294Using "3[m" will jump to the start of the class.
12891295
12901296						*[#* 
1291- [#			go  to [count]  previous unmatched "#if" or "#else".
1297+ [#			Go  to [count]  previous unmatched "#if" or "#else".
12921298			| exclusive |  motion.
12931299
12941300						*]#* 
1295- ]#			go  to [count]  next unmatched "#else" or "#endif".
1301+ ]#			Go  to [count]  next unmatched "#else" or "#endif".
12961302			| exclusive |  motion.
12971303
12981304These two commands work in C programs that contain #if/#else/#endif
12991305constructs.  It brings you to the start or end of the #if/#else/#endif where
13001306the current line is included.  You can then use "%" to go to the matching line.
13011307
13021308						*[star*  *[/* 
1303- [*  or  [/		go  to [count]  previous start of a C comment "/*".
1309+ [*  or  [/		Go  to [count]  previous start of a C comment "/*".
13041310			| exclusive |  motion.
13051311
13061312						*]star*  *]/* 
1307- ]*  or  ]/		go  to [count]  next end of a C comment "*/".
1313+ ]*  or  ]/		Go  to [count]  next end of a C comment "*/".
13081314			| exclusive |  motion.
13091315
13101316
0 commit comments