Questions tagged [highlighting]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
19 views

virtual replacement by string not cchar

the virtual text makes vim/neovim very powerful I want to use the conceallevel to change some text virtually, using the regex or treesitter replace > with one char: ▶ " vim > > > :...
1 vote
2 answers
179 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 ...
0 votes
0 answers
71 views

Remove highlighting of a csv file in nvim 0.4.4

I have nvim 0.4.4. I tried to install a csv plugin from there, but now, when I open a csv file there is some (unwanted) highlighting as follows: I can I remove the highlighting? Here is my vimrc file:...
  • 139
1 vote
0 answers
190 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?
  • 11
0 votes
1 answer
55 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 ...
0 votes
1 answer
58 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 ...
  • 139
0 votes
1 answer
36 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, ...
1 vote
1 answer
47 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 ...
  • 145
1 vote
1 answer
34 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 ...
0 votes
1 answer
126 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 ...
  • 131
2 votes
0 answers
51 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 &...
  • 173
0 votes
2 answers
249 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.
1 vote
1 answer
72 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 * \ ...
  • 1,930
2 votes
1 answer
253 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 ...
1 vote
0 answers
165 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 ...
  • 333