commit 3f422cb5eb0a24a87ac345b7e36ed719b426f28b
parent a1bc5d0ae6a90bb0f5d466c375328c7c3cf35bec
Author: zeertzjq <zeertzjq@outlook.com>
Date: Thu, 2 Oct 2025 11:11:53 +0800
vim-patch:6e28211: runtime(doc): Tweak documentation style
closes: vim/vim#18462
https://github.com/vim/vim/commit/6e282117c7409af15f33120e67a00c47eefbbba5
Co-authored-by: Hirohito Higashi <h.east.727@gmail.com>
Diffstat:
3 files changed, 21 insertions(+), 24 deletions(-)
diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt
@@ -1639,12 +1639,11 @@ A jump table for the options with a short description can be found at |Q_op|.
see 'completefuzzycollect'.
longest
- When 'autocomplete' is not active, only the longest
- common prefix of the matches is inserted. If the popup
- menu is displayed, you can use CTRL-L to add more
- characters. Whether case is ignored depends on the type
- of completion. For buffer text the 'ignorecase' option
- applies.
+ When 'autocomplete' is not active, only the longest common
+ prefix of the matches is inserted. If the popup menu is
+ displayed, you can use CTRL-L to add more characters.
+ Whether case is ignored depends on the type of completion.
+ For buffer text the 'ignorecase' option applies.
When 'autocomplete' is active and no completion item is
selected, the longest common prefix of the matches is
@@ -1686,8 +1685,8 @@ A jump table for the options with a short description can be found at |Q_op|.
with "menu" or "menuone". Overrides "preview".
preinsert
- Inserts the text of the first completion candidate
- beyond the current leader, highlighted with |hl-PreInsert|.
+ Inserts the text of the first completion candidate beyond
+ the current leader, highlighted with |hl-PreInsert|.
The cursor does not move.
Requires "fuzzy" to be unset, and either "menuone" in
'completeopt' or 'autocomplete' enabled. When
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua
@@ -1184,12 +1184,11 @@ vim.go.cia = vim.go.completeitemalign
--- see 'completefuzzycollect'.
---
--- longest
---- When 'autocomplete' is not active, only the longest
---- common prefix of the matches is inserted. If the popup
---- menu is displayed, you can use CTRL-L to add more
---- characters. Whether case is ignored depends on the type
---- of completion. For buffer text the 'ignorecase' option
---- applies.
+--- When 'autocomplete' is not active, only the longest common
+--- prefix of the matches is inserted. If the popup menu is
+--- displayed, you can use CTRL-L to add more characters.
+--- Whether case is ignored depends on the type of completion.
+--- For buffer text the 'ignorecase' option applies.
---
--- When 'autocomplete' is active and no completion item is
--- selected, the longest common prefix of the matches is
@@ -1231,8 +1230,8 @@ vim.go.cia = vim.go.completeitemalign
--- with "menu" or "menuone". Overrides "preview".
---
--- preinsert
---- Inserts the text of the first completion candidate
---- beyond the current leader, highlighted with `hl-PreInsert`.
+--- Inserts the text of the first completion candidate beyond
+--- the current leader, highlighted with `hl-PreInsert`.
--- The cursor does not move.
--- Requires "fuzzy" to be unset, and either "menuone" in
--- 'completeopt' or 'autocomplete' enabled. When
diff --git a/src/nvim/options.lua b/src/nvim/options.lua
@@ -1664,12 +1664,11 @@ local options = {
see 'completefuzzycollect'.
longest
- When 'autocomplete' is not active, only the longest
- common prefix of the matches is inserted. If the popup
- menu is displayed, you can use CTRL-L to add more
- characters. Whether case is ignored depends on the type
- of completion. For buffer text the 'ignorecase' option
- applies.
+ When 'autocomplete' is not active, only the longest common
+ prefix of the matches is inserted. If the popup menu is
+ displayed, you can use CTRL-L to add more characters.
+ Whether case is ignored depends on the type of completion.
+ For buffer text the 'ignorecase' option applies.
When 'autocomplete' is active and no completion item is
selected, the longest common prefix of the matches is
@@ -1711,8 +1710,8 @@ local options = {
with "menu" or "menuone". Overrides "preview".
preinsert
- Inserts the text of the first completion candidate
- beyond the current leader, highlighted with |hl-PreInsert|.
+ Inserts the text of the first completion candidate beyond
+ the current leader, highlighted with |hl-PreInsert|.
The cursor does not move.
Requires "fuzzy" to be unset, and either "menuone" in
'completeopt' or 'autocomplete' enabled. When