Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [highlighting]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
38 views

Is it possible to change Vim 'gutter' color to white?

I have looked at these two questions but I think I am not understanding something. I am using vim-git-gutter. When I do not have any special settings, I get the default highlighting in the sign column....
merlin2011's user avatar
0 votes
1 answer
102 views

When I use helpgrep, how can I highlight my search results?

I'm using :helpg session in my Vim. I would like to highlight the pattern in the results like :set hls does for normal search. Is there a way to do this?
mohamadi_arch's user avatar
7 votes
3 answers
7k views

How to get the highlight group of the word under the cursor in Neovim with Treesitter installed?

Ok folks, I've tried all these duplicates: How to know which highlighting group is used for the background of a word? How to identify the highlight groups in use on a particular character? How to ...
artfulrobot's user avatar
0 votes
2 answers
122 views

How can I check whether the user has defined a highlight group before Vim 8.2.3917

With this question I've learned of the existence of hlget and hlID, which I use in a plugin of mine like this: if empty(hlget('SoftWrapHighlightGroup')) " do stuff endif However, those ...
Enlico's user avatar
  • 2,214
1 vote
2 answers
127 views

How do I let the user of my plugin customize a custom highlight group I define?

In this plugin for (soft-)wrapping only the current line, I have defined a highlight group, au ColorScheme * hi SoftWrapHighlightGroup ctermbg=NONE ctermfg=NONE, which I use here as an argument to a ...
Enlico's user avatar
  • 2,214
2 votes
2 answers
994 views

Upgraded my mac OS and now the vim colors are different. Is there an easy way for me to change the default syntax?

I upgraded my mac to Catalina and now the vim syntax looks all off to me. I am sure that strings used to be red, and I think that def used to be turquoise and import was pink. Is there a simple way ...
kilojoules's user avatar
1 vote
0 answers
368 views

markdown code block in a specific color

I would like to highlight a code block per instance completely in yellow. ˋˋˋyellow here is everything printed yellow ˋˋˋ ˋˋˋgreen and here is everything green ˋˋˋ How can I achieve this?
skum's user avatar
  • 11
0 votes
1 answer
65 views

Generate relatively unique "cache filename" for given file path (like swap files do)

For each filename, Vim generates (relatively) unique filename for it's swap cache directory. Let's say I would like to store some information for each file (like swap files do), e.g. with : silent ...
Grzegorz Wierzowiecki's user avatar
0 votes
1 answer
159 views

Cannot get rid of persisting highlighting

I switched from macos to linux and have spontaneous highlighting in my document. I tried to get rid of it by doing the following command without success: hi clear no syntax nohlsearch noh The ...
ecjb's user avatar
  • 149
0 votes
1 answer
67 views

Persistent highlighting of a passage in Vim

I use Vim for presentations and note-taking. I would like to be able to highlight a portion of text in a buffer , split the window, go to the bottom of the buffer, and carry on typing the notes, ...
user3203476's user avatar
2 votes
1 answer
159 views

Can you call highlight more than once? Need different colors for different matches

I am working with text files and Goyo. I'd like to highlight two different kinds of notes delimited by brackets (one called "NOTE:" and the other "TODO:") in different colors. I ...
aris's user avatar
  • 155
1 vote
1 answer
39 views

Help writing simple syntax file for line specific matches

I would appreciate some help writing a simple syntax file. I have files with the following header: Job Number: 20030003 Date: October 28, 2020 Time: 01:36:00 Vessel: Enterprise Client: Shell ...
Sam Alleman's user avatar
1 vote
1 answer
281 views

Disable highlighting in location list in vim

I've found many questions about disabling search highlighting in vim, but couldn't find the way to disable highlighting in location list. As you can see, yellow highlighting is shown on the first ...
tet's user avatar
  • 151
2 votes
0 answers
59 views

Is there some way to retrieve/redisplay :echon output?

I want to create a multi-color enabled debug-print command. As far I know, the only way to print multi-color messages in Vim is: echohl Macro | echon "Hi" | echohl Statement | \ echon &...
Mooncer's user avatar
  • 173
1 vote
2 answers
904 views

How to highlight search with / and ? but not * and # vim

Is there any way to have vim highlight the search with / and ? but not when putting cursor on a word and pressing * or #? :set hlsearch and :set nohlsearch turn it on and off for both.
Thaddaeus Markle's user avatar
1 vote
1 answer
79 views

Can I apply individual colours from one highlight in another one?

I have an auto command that changes some color scheme values so I can avoid forking them when all I need is small changes: augroup FixColorSchemes autocmd! autocmd ColorScheme * \ ...
Tae's user avatar
  • 2,135
2 votes
2 answers
456 views

Highlight search phrase within quickfix window listing

One can change the search color of search terms with the Search highlight scheme. Similarly one can change the color of a line in the quickfix window with QuickFixLine. However, how does one change ...
run_the_race's user avatar
1 vote
0 answers
237 views

Highlight color columns on top of folds (not below)

I'm highlighting folds and color columns in colors different from the background and from each other. Here's an excerpt of my vimrc with all (potentially) relevant lines: " ~/.vimrc ... " Folding ...
flotzilla's user avatar
  • 333