From c830901e8cde49467d1c99c2d656a13e51979790 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 17 Dec 2024 12:40:30 +0800 Subject: vim-patch:9.1.0936: cannot highlight completed text Problem: cannot highlight completed text Solution: (optionally) highlight auto-completed text using the ComplMatchIns highlight group (glepnir) closes: vim/vim#16173 https://github.com/vim/vim/commit/6a38aff218f5b99a1aed7edaa357df24b9092734 Co-authored-by: glepnir --- runtime/colors/vim.lua | 1 + runtime/doc/news.txt | 1 + runtime/doc/syntax.txt | 2 ++ 3 files changed, 4 insertions(+) (limited to 'runtime') diff --git a/runtime/colors/vim.lua b/runtime/colors/vim.lua index 5b9309ab38..dd3e83c653 100644 --- a/runtime/colors/vim.lua +++ b/runtime/colors/vim.lua @@ -60,6 +60,7 @@ hi('PmenuMatch', { link = 'Pmenu' }) hi('PmenuMatchSel', { link = 'PmenuSel' }) hi('PmenuExtra', { link = 'Pmenu' }) hi('PmenuExtraSel', { link = 'PmenuSel' }) +hi('ComplMatchIns', { link = 'Normal' }) hi('Substitute', { link = 'Search' }) hi('Whitespace', { link = 'NonText' }) hi('MsgSeparator', { link = 'StatusLine' }) diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index ad0835e80f..73704a143c 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -216,6 +216,7 @@ EDITOR • On Windows, filename arguments on the command-line prefixed with "~\" or "~/" are now expanded to the user's profile directory, not a relative path to a literal "~" directory. +• |hl-ComplMatchIns| shows matched text of the currently inserted completion. • |hl-PmenuMatch| and |hl-PmenuMatchSel| show matched text in completion popup. EVENTS diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index df4d0f7260..f5183e3247 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -5243,6 +5243,8 @@ PmenuMatch Popup menu: Matched text in normal item. Combined with *hl-PmenuMatchSel* PmenuMatchSel Popup menu: Matched text in selected item. Combined with |hl-PmenuMatch| and |hl-PmenuSel|. + *hl-ComplMatchIns* +ComplMatchIns Matched text of the currently inserted completion. *hl-Question* Question |hit-enter| prompt and yes/no questions. *hl-QuickFixLine* -- cgit From b7da54aa9e72a0c7684546439f078ed89ba16d0a Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Wed, 18 Dec 2024 07:49:13 +0800 Subject: vim-patch:9.1.0942: a few typos were found Problem: a few typos were found Solution: fix them (zeertzjq) closes: vim/vim#16232 https://github.com/vim/vim/commit/d32bf0a06762f9ad08334d67b4d7f235f87f9063 --- runtime/doc/motion.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime') diff --git a/runtime/doc/motion.txt b/runtime/doc/motion.txt index 41fcdc3e1b..284be09121 100644 --- a/runtime/doc/motion.txt +++ b/runtime/doc/motion.txt @@ -118,8 +118,8 @@ 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. +character to the right, so that the Visual selection includes the expected +text and can be acted upon. *forced-motion* FORCING A MOTION TO BE LINEWISE, CHARWISE OR BLOCKWISE -- cgit