mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
runtime(doc): clarify behaviour of ]m and ]M motions
In particular remove the sentence, that a missing '{' (for ]m) or '}' (for ]M) after the cursor is an error, since currently this is not treated as an error. fixes: #13777 Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
*motion.txt* For Vim version 9.0. Last change: 2023 Sep 28
|
*motion.txt* For Vim version 9.0. Last change: 2023 Dec 27
|
||||||
|
|
||||||
|
|
||||||
VIM REFERENCE MANUAL by Bram Moolenaar
|
VIM REFERENCE MANUAL by Bram Moolenaar
|
||||||
@@ -1310,14 +1310,12 @@ bring you back to the switch statement.
|
|||||||
]m Go to [count] next start of a method (for Java or
|
]m Go to [count] next start of a method (for Java or
|
||||||
similar structured language). When not before the
|
similar structured language). When not before the
|
||||||
start of a method, jump to the start or end of the
|
start of a method, jump to the start or end of the
|
||||||
class. When no '{' is found after the cursor, this is
|
class. |exclusive| motion.
|
||||||
an error. |exclusive| motion.
|
|
||||||
*]M*
|
*]M*
|
||||||
]M Go to [count] next end of a method (for Java or
|
]M Go to [count] next end of a method (for Java or
|
||||||
similar structured language). When not before the end
|
similar structured language). When not before the end
|
||||||
of a method, jump to the start or end of the class.
|
of a method, jump to the start or end of the class.
|
||||||
When no '}' is found after the cursor, this is an
|
|exclusive| motion.
|
||||||
error. |exclusive| motion.
|
|
||||||
*[m*
|
*[m*
|
||||||
[m Go to [count] previous start of a method (for Java or
|
[m Go to [count] previous start of a method (for Java or
|
||||||
similar structured language). When not after the
|
similar structured language). When not after the
|
||||||
|
Reference in New Issue
Block a user