纵欲是什么意思
百度 退休人口增加、劳动人口减少,首先影响的就是GDP、税收和劳动力等。
Adding highlighting to the document other than syntax highlighting (such as hlsearch or :match)
274 questions
103
votes
10
answers
164k
views
How can I clear word highlighting in the current document (e.g. such as after searching for a word)?
When you search for a word in a file with something like /console.log, all of the instances of console.log are highlighted.
When you're no longer interested in these, the highlighting can be ...
45
votes
1
answer
21k
views
Is there any way to change the popup menu color?
Is there any way to change the background color of the popup menu in gvim? The default background color is pink, which is a little weird to me.
37
votes
12
answers
37k
views
How to automatically turn off "hlsearch" after I'm done searching?
I love the "hlsearch" setting, but after I'm done searching, I find it obnoxious. Especially if I search for something that has a lot of matches. I know that I can turn this off with
:set nohlsearch
...
28
votes
3
answers
16k
views
Can the split separator in vim be less than a full column wide?
I use a tiling window manager (awesome) + a terminal multiplexer (tmux) + splits inside of vim. I have no window decorations at all, so there is no visual split between them at all if the content of ...
25
votes
6
answers
6k
views
Set cursor colour different when on a highlighted word
With the current colourscheme I have been using, it is hard to find where the cursor is positioned when navigating through search results. The highlighting colour and the cursor colour are blending in ...
17
votes
2
answers
11k
views
What is the functional difference between :nohlsearch and :set nohlsearch?
I noticed that when I use :nohlsearch that it does not actually do the same thing as :set nohlsearch.
In particular, the hlsearch setting is not actually switched off (which is what :set hlsearch) ...
14
votes
7
answers
11k
views
How to search for lines matching current line in vim
I usually search for words by :/string, but if I have to search entire current line, how to do that.
event: 1 beacon: 0x02 //line 1
event: 19 beacon: 0x02 //line 2
event: 1 ...
14
votes
2
answers
2k
views
Auto Highlighting identical lines text
I saw a skilled vim ninja do this a while back but I have no idea were to start.
A) Is there a way to set up vims background colour so that consecutive lines with identical content get highlighted.
...
14
votes
1
answer
5k
views
Why do custom highlights in my vimrc get cleared or reset to default?
I would like to highlight (part of) my statusline with %1*, for example:
set statusline=%1*%f%0*
highlight User1 ctermbg=0 ctermfg=10 cterm=bold
However, this always shows up as "empty" (the default ...
14
votes
1
answer
2k
views
Is there an incsearch for the replace command?
I really enjoy Vim's incsearch functionality. Is there a way to have it, or something similar to it, working while I do a replacement?
For example, if in normal mode I type:
:%s/potato/
Can I get ...
13
votes
5
answers
15k
views
How to highlight/match (but not search!) the word under cursor
I am searching some pattern, navigate between search results, and at the same time I want some other pattern to be highlighted. For example, I jump between invocations of some function in my project, ...
13
votes
1
answer
3k
views
How can I highlight matching "%" names (e.g. if/end, for/end) defined by matchit.vim on selection?
Update 2025-08-05: Now I would recommend using the vim-matchup plugin. When matching pair highlighting is turned on, vim-matchup also highlights matching keywords like if/else/endif or while/continue/...
13
votes
3
answers
1k
views
Highlighted undo in Vim
I'm trying to have a highlighted undo in Vim, like spacemacs default config.
Sometimes when I want quick undo's, I can't realize what changed because it's instantaneous. So I am trying to have ...
12
votes
1
answer
2k
views
Visual select current search result
I have hlsearch set, but it sometimes lulls me into thinking t
hat I have the search term visually selected, and can just hit c to change it.
The term searched for may not be an easy number of ...
12
votes
1
answer
1k
views
Where do custom highlighting rules belong?
Occasionally I want to override the default syntax highlighting colours and styles with my own preferences.
I imagine the most appropriate way to do this would be to create my own colorscheme. ...