【体育讲堂】运动饮料怎么喝
百度 27日,扩散条件进一步转差,预计污染区域持续,并可能扩大到太行山东侧沿线城市。
Adding highlighting to the document other than syntax highlighting (such as hlsearch or :match)
274 questions
0
votes
1
answer
38
views
Change highlight at arbitrary range
Is there some way to change highlighting of arbitrary range of text? You can assume the buffer is not modifiable to avoid issues with it being misaligned after editing.
For example, I would like to ...
0
votes
1
answer
42
views
How to make search highlights rendered over ALE highlights?
I have Vim configured to highlight searched words in yellow, and ALE shows underlines for any errors or warnings. The problem I'm facing is that the highlight is not displayed over text with an ...
1
vote
2
answers
83
views
Echo message with highlighting when opening Vim
I want to echo some fun ASCII art when Vim opens,
For some reason though, when I try to add color highlights to the message they do not show up. So I created a vimscript function and mapped it to ...
2
votes
1
answer
207
views
What is the meaning of the error "E519: Option not supported: hlsearch?"
I recently installed Fedora 41 KDE spin and discovered that when I tried searching in vi that it wasn't highlighting, even when I made sure set hlsearch was in my .vimrc. When I tried :set hlsearch? ...
0
votes
0
answers
37
views
Calling a function works but mapping it does not work
I found a function to highlight the current word and all the same words in file and mapped it to z/. It has worked for years, but these days it doesn't work and I couldn't find the reason.
If I run :...
1
vote
1
answer
33
views
Highlight `listchars`' `precedes` and `extends` differently from `NonText`
I want listchars' precedes and extends characters to really stand out.
I figured I'd use some highlight group that just inverts the foreground and background of my default text colour—similarly to ...
0
votes
2
answers
77
views
Where to put the extra coloring of highlights (not found in most colorschemes)?
Working on a new syntax file for nftables (here).
If a syntax file has introduced (oh, let us) say about 50 more unique colors via highlight (and highlight link) statements, where should these many ...
0
votes
0
answers
140
views
Why does transparency have no effect in WezTerm terminal emulator?
Vim in WezTerm has no transparent effect. I set:
set termguicolors
hi Normal ctermbg=NONE
highlight Nontext ctermbg=NONE
hi Normal guibg=NONE
It does not change anything, it is showing pure black.
0
votes
1
answer
46
views
Trigger incremental search for user defined command arguments
When incsearch is enabled, doing a search with / or entering the search pattern for the substitute command will highlight the pattern as you type. Is there a way to get this same behavior for custom ...
1
vote
0
answers
47
views
How to stop LSP from turning an entire uncompleted method call red?
When I write a method but don't finish it, the language server gets mad and turns the whole thing red, making it difficult to read. I don't have any screenshots because my computer can't currently ...
0
votes
1
answer
55
views
How to highlight buffer text as it is inserted in input()?
I wish that the string I am inserting when prompted after a input() function and before hitting Enter is highlighted in the current buffer and such a highlight is deleted once I press Enter.
My ...
1
vote
2
answers
99
views
How do I set CurSearch from my vimrc?
patch-8.2.4724 added a new highlight group for the search match under the cursor, but it looks identical to the Search highlight group by default. I know I need to set it to a colour for it to make a ...
1
vote
1
answer
107
views
Highlighting lines containing fold-markers when fold is open
When Vim/Neovim is configured to use markers as foldmethod, it highlights the line containing the marker if the fold is closed. When the fold is opened, the lines containing the markers look the same ...
1
vote
1
answer
185
views
Unable to set custom colors for LSP errors
I have a custom color scheme and I've provided colors for LSPDiagnostics and Errors, but none of them are working.
As seen, errors should be red, but the errors I see are yellowish in color
Tried a ...
0
votes
2
answers
97
views
Revert Cursor Line Higlighting on Leaving Insert Mode
Apologies in advance if this is a RTFM case, but I have checked pretty thoroughly and I am still stumped. I am running Vim with the afterglow colorscheme on a vanilla Arch/Xmonad laptop. I cannot seem ...