Same as Neovim's winhighlight option, as said here:
'winhighlight' 'winhl' string (default "")
local to window
Window-local highlights. Comma-delimited list of highlight
|group-name| pairs "{hl-from}:{hl-to},..." where each {hl-from} is
a |highlight-groups| item to be overridden by {hl-to} group in
the window.
Note: highlight namespaces take precedence over 'winhighlight'.
See |nvim_win_set_hl_ns()| and |nvim_set_hl()|.
Highlights of vertical separators are determined by the window to the
left of the separator. The 'tabline' highlight of a tabpage is
decided by the last-focused window of the tabpage. Highlights of
the popupmenu are determined by the current window. Highlights in the
message area cannot be overridden.
Example: show a different color for non-current windows: >vim
set winhighlight=Normal:MyNormal,NormalNC:MyNormalNC
Fixes #3576
Demo:
https://github.com/user-attachments/assets/18e2f771-63d8-442a-83ff-70d469de87bf
I will add docs and tests later (also need to add cmdline completion)
https://github.com/vim/vim/pull/19493
(12 files)
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@64-bitman pushed 1 commit.
—
View it on GitHub or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
@64-bitman pushed 1 commit.
You are receiving this because you are subscribed to this thread.![]()
@64-bitman pushed 1 commit.
You are receiving this because you are subscribed to this thread.![]()
@64-bitman pushed 1 commit.
You are receiving this because you are subscribed to this thread.![]()
@64-bitman pushed 1 commit.
You are receiving this because you are subscribed to this thread.![]()
@64-bitman pushed 1 commit.
You are receiving this because you are subscribed to this thread.![]()
@64-bitman pushed 1 commit.
You are receiving this because you are subscribed to this thread.![]()
@64-bitman pushed 1 commit.
You are receiving this because you are subscribed to this thread.![]()
I'm wondering that this option conflicts with the 'wincolor' option. Is this OK?
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
I'm wondering that this option conflicts with the
'wincolor'option. Is this OK?
I suppose we can just make wincolor use winhighlight internally
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@64-bitman pushed 1 commit.
You are receiving this because you are subscribed to this thread.![]()
My use case for this was to have hlsearch only for the current window:
vim9script var save: list<dict<any>> autocmd CmdlineEnter [\/\?] { set hlsearch save = hlget("Search") var id: number = save[0].id save[0].name = "SearchTemp" save[0].id = 0 hlset(save) save[0].name = "Search" save[0].id = id hi clear Search setlocal whl=Search:SearchTemp } autocmd CmdlineLeave [\/\?] { set nohlsearch hi clear SearchTemp hlset(save) setlocal whl= }
—
Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.![]()
@64-bitman pushed 1 commit.
You are receiving this because you are subscribed to this thread.![]()
@64-bitman pushed 1 commit.
You are receiving this because you are subscribed to this thread.![]()
@64-bitman pushed 1 commit.
You are receiving this because you are subscribed to this thread.![]()
@64-bitman pushed 1 commit.
You are receiving this because you are subscribed to this thread.![]()
@64-bitman pushed 1 commit.
You are receiving this because you are subscribed to this thread.![]()
@64-bitman pushed 2 commits.
You are receiving this because you are subscribed to this thread.![]()