不止是国内云计算热闹 亚马逊微软谷歌和IBM..
百度 二是强化能力提升。
Adding highlighting to the document other than syntax highlighting (such as hlsearch or :match)
274 questions
0
votes
1
answer
243
views
Fold: Different highlight style for fold of each filetype
Extend of this question of fold: Fold: foldtext() for each filetype
We have fold for each filetype now but each fold need different highlight style of color, because highlight is global I tried to ...
4
votes
1
answer
259
views
How to use different rules for highlighting trailing whitespace inside a gitcommit diff?
In my ~/.vimrc, I have:
highlight TrailingWhitespace ctermbg=blue
autocmd BufReadPost * syn match TrailingWhitespace /\s\+\%#\@<!$/
This highlights trailing spaces, except when I am still typing ...
1
vote
1
answer
91
views
Syntax - Match word based on a previous match
I want to highlight all words that have been matched in another syntax region. Using something similar to regex capture groups, for example given a file:
{highlightme} asda asasd asd asd as ...
1
vote
2
answers
364
views
gvim swaping between underline and normal visual text selection in visual mode
I'm having a weird issue running gvim 8.2.1081 on fedora 32 using kde. When selecting text in visual mode gvim keeps swapping between an underline and the expected visual text selection while moving ...
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 ...
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 ...
3
votes
1
answer
161
views
How to call incremental forward/reverse search inside function in Neovim?
I'm trying to implement a search function that finds a pattern and jumps to it without overriding the current searched for & highlighted pattern.
Specifically, I want to be able to type out the ...
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 ...
1
vote
1
answer
273
views
Toggle specific highlight group
Is it possible to temporarily disable the text highlight under cursor?
The current highlight group can be obtained by synIDattr(synIDtrans(synID(line('.'), col('.'), 1)), 'name'). How to clear 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? ...
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 ...
3
votes
4
answers
1k
views
How to automatically change the background color of the active split?
I use several splits (windows). To quickly identify the splits that has the focus I would like Vim to auromatically adapt the background color of the active split.
Is there a way to do so?
Is it ...
0
votes
1
answer
128
views
How to highlight missing comma in lua files?
I often forget the comma between embedded table entries in lua code.
t = {
a = { "str" },
b = {
{
"str3",
v = 1,
} <<-- missing comma
...
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 :...
3
votes
2
answers
3k
views
Why doesn't undercurl use underline in my terminal?
:help undercurl states:
"undercurl" is a curly underline. When "undercurl" is not possible then "underline" is used. In general "undercurl" and "strikethrough" is only available in the GUI.
But if I ...