aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-12-17 08:18:06 +0800
committerzeertzjq <zeertzjq@outlook.com>2024-12-17 08:21:31 +0800
commit59f38ef3c446afb4f6fcf113874b5c6e1af46d8e (patch)
treea1a72e6ed127bd67bedc8a695bf1e8d437b3de59
parent98e361031636d0f7838d59254b1fc2a49cb388e8 (diff)
downloadrneovim-59f38ef3c446afb4f6fcf113874b5c6e1af46d8e.tar.gz
rneovim-59f38ef3c446afb4f6fcf113874b5c6e1af46d8e.tar.bz2
rneovim-59f38ef3c446afb4f6fcf113874b5c6e1af46d8e.zip
vim-patch:0a4e57f: runtime(doc): fix a few minor errors from the last doc updates
1) move the section at :h inclusive-motion-selection-exclusive a few lines below, so that it doesn't live in between the 2 exceptions. 2) remove the tag :h :!-range. It's not accurate (because it is actually a filter) and this command is already described at :h :range! https://github.com/vim/vim/commit/0a4e57f44abc05033f839b4538efee8120f7d967 Co-authored-by: Christian Brabandt <cb@256bit.org>
-rw-r--r--runtime/doc/motion.txt13
-rw-r--r--runtime/doc/various.txt3
2 files changed, 6 insertions, 10 deletions
diff --git a/runtime/doc/motion.txt b/runtime/doc/motion.txt
index ec4732c05a..41fcdc3e1b 100644
--- a/runtime/doc/motion.txt
+++ b/runtime/doc/motion.txt
@@ -86,13 +86,6 @@ command. There are however, two general exceptions:
end of the motion is moved to the end of the previous line and the motion
becomes inclusive. Example: "}" moves to the first line after a paragraph,
but "d}" will not include that line.
-
- *inclusive-motion-selection-exclusive*
-When 'selection' is "exclusive", |Visual| mode is active and an inclusive
-motion has been used, the cursor position will be adjusted by another
-character to the right, so that visual selction includes the expected text and
-can be acted upon.
-
*exclusive-linewise*
2. If the motion is exclusive, the end of the motion is in column 1 and the
start of the motion was at or before the first non-blank in the line, the
@@ -122,6 +115,12 @@ This cannot be repeated: >
endif<CR>
Note that when using ":" any motion becomes charwise exclusive.
+ *inclusive-motion-selection-exclusive*
+When 'selection' is "exclusive", |Visual| mode is active and an inclusive
+motion has been used, the cursor position will be adjusted by another
+character to the right, so that visual selction includes the expected text and
+can be acted upon.
+
*forced-motion*
FORCING A MOTION TO BE LINEWISE, CHARWISE OR BLOCKWISE
diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt
index 57d6e48468..6074931565 100644
--- a/runtime/doc/various.txt
+++ b/runtime/doc/various.txt
@@ -323,9 +323,6 @@ gx Opens the current filepath or URL (decided by
To avoid the hit-enter prompt use: >
:silent !{cmd}
<
- *:!-range*
-:{range}!{cmd} Like |:!| but execute {cmd} for each line in the
- {range}.
*:!!*
:!! Repeat last ":!{cmd}".