vim-patch:partial:52e7cc2: runtime(doc): tweak documentation style a bit (#29897)

closes: vim/vim#15371

52e7cc26d8

Co-authored-by: h-east <h.east.727@gmail.com>
This commit is contained in:
zeertzjq 2024-07-29 08:02:31 +08:00 committed by GitHub
parent 5aa1a9532c
commit fe5030c05e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 13 additions and 12 deletions

View File

@ -2167,7 +2167,7 @@ text...
let lconst[1][0] = 'b' " OK
< *E995*
It is an error to specify an existing variable with
:const. >
|:const|. >
:let x = 1
:const x = 1 " Error!
< *E996*

View File

@ -1939,7 +1939,7 @@ command in ex mode: >
two
.
:visual
<appends the following text, after the cursor line: >
appends the following text, after the cursor line: >
one
two
<

View File

@ -4432,17 +4432,17 @@ A jump table for the options with a short description can be found at |Q_op|.
Using CTRL-X on "0" or CTRL-A on "18446744073709551615"
(2^64 - 1) has no effect, overflow is prevented.
blank If included, treat numbers as signed or unsigned based on
preceding whitespace. If a number with a leading dash has its
preceding whitespace. If a number with a leading dash has its
dash immediately preceded by a non-whitespace character (i.e.,
not a tab or a " "), the negative sign won't be considered as
part of the number. For example:
Using CTRL-A on "14" in "Carbon-14" results in "Carbon-15"
(without "blank" it would become "Carbon-13").
Using CTRL-X on "8" in "Carbon -8" results in "Carbon -9"
(because -8 is preceded by whitespace. If "unsigned" was
(because -8 is preceded by whitespace. If "unsigned" was
set, it would result in "Carbon -7").
If this format is included, overflow is prevented as if
"unsigned" were set. If both this format and "unsigned" are
"unsigned" were set. If both this format and "unsigned" are
included, "unsigned" will take precedence.
Numbers which simply begin with a digit in the range 1-9 are always

View File

@ -240,7 +240,8 @@ Adding nohlsearch package *nohlsearch-install*
Load the plugin with this command: >
packadd nohlsearch
<
Automatically execute |:nohlsearch| after 'updatetime' or getting into |Insert| mode.
Automatically execute |:nohlsearch| after 'updatetime' or getting into
|Insert| mode.
Thus assuming default updatetime, hlsearch would be suspended/turned off after
4 seconds of idle time.

View File

@ -4550,17 +4550,17 @@ vim.go.mouset = vim.go.mousetime
--- Using CTRL-X on "0" or CTRL-A on "18446744073709551615"
--- (2^64 - 1) has no effect, overflow is prevented.
--- blank If included, treat numbers as signed or unsigned based on
--- preceding whitespace. If a number with a leading dash has its
--- preceding whitespace. If a number with a leading dash has its
--- dash immediately preceded by a non-whitespace character (i.e.,
--- not a tab or a " "), the negative sign won't be considered as
--- part of the number. For example:
--- Using CTRL-A on "14" in "Carbon-14" results in "Carbon-15"
--- (without "blank" it would become "Carbon-13").
--- Using CTRL-X on "8" in "Carbon -8" results in "Carbon -9"
--- (because -8 is preceded by whitespace. If "unsigned" was
--- (because -8 is preceded by whitespace. If "unsigned" was
--- set, it would result in "Carbon -7").
--- If this format is included, overflow is prevented as if
--- "unsigned" were set. If both this format and "unsigned" are
--- "unsigned" were set. If both this format and "unsigned" are
--- included, "unsigned" will take precedence.
---
--- Numbers which simply begin with a digit in the range 1-9 are always

View File

@ -5718,17 +5718,17 @@ return {
Using CTRL-X on "0" or CTRL-A on "18446744073709551615"
(2^64 - 1) has no effect, overflow is prevented.
blank If included, treat numbers as signed or unsigned based on
preceding whitespace. If a number with a leading dash has its
preceding whitespace. If a number with a leading dash has its
dash immediately preceded by a non-whitespace character (i.e.,
not a tab or a " "), the negative sign won't be considered as
part of the number. For example:
Using CTRL-A on "14" in "Carbon-14" results in "Carbon-15"
(without "blank" it would become "Carbon-13").
Using CTRL-X on "8" in "Carbon -8" results in "Carbon -9"
(because -8 is preceded by whitespace. If "unsigned" was
(because -8 is preceded by whitespace. If "unsigned" was
set, it would result in "Carbon -7").
If this format is included, overflow is prevented as if
"unsigned" were set. If both this format and "unsigned" are
"unsigned" were set. If both this format and "unsigned" are
included, "unsigned" will take precedence.
Numbers which simply begin with a digit in the range 1-9 are always