Merge pull request #31580 from zeertzjq/vim-ed89206

vim-patch: doc updates
This commit is contained in:
zeertzjq 2024-12-15 08:16:03 +08:00 committed by GitHub
commit 805b84c619
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 15 additions and 0 deletions

View File

@ -86,6 +86,13 @@ command. There are however, two general exceptions:
end of the motion is moved to the end of the previous line and the motion 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, becomes inclusive. Example: "}" moves to the first line after a paragraph,
but "d}" will not include that line. 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* *exclusive-linewise*
2. If the motion is exclusive, the end of the motion is in column 1 and the 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 start of the motion was at or before the first non-blank in the line, the

View File

@ -4982,6 +4982,8 @@ A jump table for the options with a short description can be found at |Q_op|.
selection. selection.
When "old" is used and 'virtualedit' allows the cursor to move past When "old" is used and 'virtualedit' allows the cursor to move past
the end of line the line break still isn't included. the end of line the line break still isn't included.
When "exclusive" is used, cursor position in visual mode will be
adjusted for inclusive motions |inclusive-motion-selection-exclusive|.
Note that when "exclusive" is used and selecting from the end Note that when "exclusive" is used and selecting from the end
backwards, you cannot include the last character of a line, when backwards, you cannot include the last character of a line, when
starting in Normal mode and 'virtualedit' empty. starting in Normal mode and 'virtualedit' empty.

View File

@ -985,6 +985,8 @@ CTRL-W g } *CTRL-W_g}*
position isn't changed. Useful example: > position isn't changed. Useful example: >
:pedit +/fputc /usr/include/stdio.h :pedit +/fputc /usr/include/stdio.h
< <
Also see |++opt| and |+cmd|.
*:ps* *:psearch* *:ps* *:psearch*
:[range]ps[earch][!] [count] [/]pattern[/] :[range]ps[earch][!] [count] [/]pattern[/]
Works like |:ijump| but shows the found match in the preview Works like |:ijump| but shows the found match in the preview

View File

@ -5214,6 +5214,8 @@ vim.go.sect = vim.go.sections
--- selection. --- selection.
--- When "old" is used and 'virtualedit' allows the cursor to move past --- When "old" is used and 'virtualedit' allows the cursor to move past
--- the end of line the line break still isn't included. --- the end of line the line break still isn't included.
--- When "exclusive" is used, cursor position in visual mode will be
--- adjusted for inclusive motions `inclusive-motion-selection-exclusive`.
--- Note that when "exclusive" is used and selecting from the end --- Note that when "exclusive" is used and selecting from the end
--- backwards, you cannot include the last character of a line, when --- backwards, you cannot include the last character of a line, when
--- starting in Normal mode and 'virtualedit' empty. --- starting in Normal mode and 'virtualedit' empty.

View File

@ -7011,6 +7011,8 @@ return {
selection. selection.
When "old" is used and 'virtualedit' allows the cursor to move past When "old" is used and 'virtualedit' allows the cursor to move past
the end of line the line break still isn't included. the end of line the line break still isn't included.
When "exclusive" is used, cursor position in visual mode will be
adjusted for inclusive motions |inclusive-motion-selection-exclusive|.
Note that when "exclusive" is used and selecting from the end Note that when "exclusive" is used and selecting from the end
backwards, you cannot include the last character of a line, when backwards, you cannot include the last character of a line, when
starting in Normal mode and 'virtualedit' empty. starting in Normal mode and 'virtualedit' empty.