aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-09-29 07:05:21 +0800
committerGitHub <noreply@github.com>2023-09-29 07:05:21 +0800
commitb917db062fc673dfbbc6a8c722b05101319ab44e (patch)
tree640cab8f51468c70f2431fa79cc694ef1c3b9fe4
parent7ec20a4082f2e62e0ae90d464e0d62aa4ffdacf4 (diff)
downloadrneovim-b917db062fc673dfbbc6a8c722b05101319ab44e.tar.gz
rneovim-b917db062fc673dfbbc6a8c722b05101319ab44e.tar.bz2
rneovim-b917db062fc673dfbbc6a8c722b05101319ab44e.zip
vim-patch:02902b547bdb (#25406)
runtime(doc): text-objects: document how escaped delimiters are handled https://github.com/vim/vim/commit/02902b547bdb3ba480a52c90dce742201241f224 Co-authored-by: Christian Brabandt <cb@256bit.org>
-rw-r--r--runtime/doc/motion.txt24
1 files changed, 16 insertions, 8 deletions
diff --git a/runtime/doc/motion.txt b/runtime/doc/motion.txt
index 5e18595d22..aa18e44225 100644
--- a/runtime/doc/motion.txt
+++ b/runtime/doc/motion.txt
@@ -570,14 +570,16 @@ a] *v_a]* *v_a[* *a]* *a[*
a[ "a [] block", select [count] '[' ']' blocks. This
goes backwards to the [count] unclosed '[', and finds
the matching ']'. The enclosed text is selected,
- including the '[' and ']'.
+ including the '[' and ']'. The |cpo-M| option flag
+ is used to handle escaped brackets.
When used in Visual mode it is made charwise.
i] *v_i]* *v_i[* *i]* *i[*
i[ "inner [] block", select [count] '[' ']' blocks. This
goes backwards to the [count] unclosed '[', and finds
the matching ']'. The enclosed text is selected,
- excluding the '[' and ']'.
+ excluding the '[' and ']'. The |cpo-M| option flag
+ is used to handle escaped brackets.
When used in Visual mode it is made charwise.
a) *v_a)* *a)* *a(*
@@ -585,7 +587,8 @@ a( *vab* *v_ab* *v_a(* *ab*
ab "a block", select [count] blocks, from "[count] [(" to
the matching ')', including the '(' and ')' (see
|[(|). Does not include white space outside of the
- parenthesis.
+ parenthesis. The |cpo-M| option flag is used to
+ handle escaped parenthesis.
When used in Visual mode it is made charwise.
i) *v_i)* *i)* *i(*
@@ -593,19 +596,22 @@ i( *vib* *v_ib* *v_i(* *ib*
ib "inner block", select [count] blocks, from "[count] [("
to the matching ')', excluding the '(' and ')' (see
|[(|). If the cursor is not inside a () block, then
- find the next "(".
+ find the next "(". The |cpo-M| option flag
+ is used to handle escaped parenthesis.
When used in Visual mode it is made charwise.
a> *v_a>* *v_a<* *a>* *a<*
a< "a <> block", select [count] <> blocks, from the
[count]'th unmatched '<' backwards to the matching
- '>', including the '<' and '>'.
+ '>', including the '<' and '>'. The |cpo-M| option flag
+ is used to handle escaped '<' and '>'.
When used in Visual mode it is made charwise.
i> *v_i>* *v_i<* *i>* *i<*
i< "inner <> block", select [count] <> blocks, from
the [count]'th unmatched '<' backwards to the matching
- '>', excluding the '<' and '>'.
+ '>', excluding the '<' and '>'. The |cpo-M| option flag
+ is used to handle escaped '<' and '>'.
When used in Visual mode it is made charwise.
*v_at* *at*
@@ -626,14 +632,16 @@ a} *v_a}* *a}* *a{*
a{ *v_aB* *v_a{* *aB*
aB "a Block", select [count] Blocks, from `[count] [{` to
the matching "}", including the "{" and "}" (see
- |[{|).
+ |[{|). The |cpo-M| option flag is used to handle
+ escaped braces.
When used in Visual mode it is made charwise.
i} *v_i}* *i}* *i{*
i{ *v_iB* *v_i{* *iB*
iB "inner Block", select [count] Blocks, from `[count] [{`
to the matching "}", excluding the "{" and "}" (see
- |[{|).
+ |[{|). The |cpo-M| option flag is used to handle
+ escaped braces.
When used in Visual mode it is made charwise.
a" *v_aquote* *aquote*