1
- *motion.txt* For Vim version 9.1. Last change: 2023 Sep 28
1
+ *motion.txt* For Vim version 9.1. Last change: 2023 Dec 27
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -600,7 +600,8 @@ i] *v_i]* *v_i[* *i]* *i[*
600
600
i[ "inner [] block", select [count] '[' ']' blocks. This
601
601
goes backwards to the [count] unclosed '[', and finds
602
602
the matching ']'. The enclosed text is selected,
603
- excluding the '[' and ']'. The | cpo-M | option flag
603
+ excluding the '[' and ']'. It's an error to select an
604
+ empty inner block like "[]". The | cpo-M | option flag
604
605
is used to handle escaped brackets.
605
606
When used in Visual mode it is made characterwise.
606
607
@@ -618,7 +619,8 @@ i( *vib* *v_ib* *v_i(* *ib*
618
619
ib "inner block", select [count] blocks, from "[count] [("
619
620
to the matching ')', excluding the '(' and ')' (see
620
621
| [( | ). If the cursor is not inside a () block, then
621
- find the next "(". The | cpo-M | option flag
622
+ find the next "(". It's an error to select an empty
623
+ inner block like "()". The | cpo-M | option flag
622
624
is used to handle escaped parenthesis.
623
625
When used in Visual mode it is made characterwise.
624
626
@@ -632,8 +634,9 @@ a< "a <> block", select [count] <> blocks, from the
632
634
i> *v_i>* *v_i<* *i>* *i<*
633
635
i< "inner <> block", select [count] <> blocks, from
634
636
the [count] 'th unmatched '<' backwards to the matching
635
- '>', excluding the '<' and '>'. The | cpo-M | option flag
636
- is used to handle escaped '<' and '>'.
637
+ '>', excluding the '<' and '>'. It's an error to
638
+ select an empty inner block like "<>". The | cpo-M |
639
+ option flag is used to handle escaped '<' and '>'.
637
640
When used in Visual mode it is made characterwise.
638
641
639
642
*v_at* *at*
@@ -663,7 +666,8 @@ i} *v_i}* *i}* *i{*
663
666
i{ *v_iB* *v_i{* *iB*
664
667
iB "inner Block", select [count] Blocks, from "[count] [{"
665
668
to the matching '}', excluding the '{' and '}' (see
666
- | [{ | ). The | cpo-M | option flag is used to handle
669
+ | [{ | ). It's an error to select an empty inner block
670
+ like "{}". The | cpo-M | option flag is used to handle
667
671
escaped braces.
668
672
When used in Visual mode it is made characterwise.
669
673
@@ -1310,14 +1314,12 @@ bring you back to the switch statement.
1310
1314
]m Go to [count] next start of a method (for Java or
1311
1315
similar structured language). When not before the
1312
1316
start of a method, jump to the start or end of the
1313
- class. When no '{' is found after the cursor, this is
1314
- an error. | exclusive | motion.
1317
+ class. | exclusive | motion.
1315
1318
*]M*
1316
1319
]M Go to [count] next end of a method (for Java or
1317
1320
similar structured language). When not before the end
1318
1321
of a method, jump to the start or end of the class.
1319
- When no '}' is found after the cursor, this is an
1320
- error. | exclusive | motion.
1322
+ | exclusive | motion.
1321
1323
*[m*
1322
1324
[m Go to [count] previous start of a method (for Java or
1323
1325
similar structured language). When not after the
0 commit comments