2022 Developer Survey is open! Take survey.

Questions tagged [highlighting]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
33 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 ...
user avatar
0 votes
0 answers
34 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:...
user avatar
  • 139
1 vote
0 answers
116 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?
user avatar
  • 11
0 votes
1 answer
46 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 ...
user avatar
0 votes
1 answer
55 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 ...
user avatar
  • 139
0 votes
1 answer
33 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, ...
user avatar
1 vote
1 answer
38 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 ...
user avatar
  • 135
1 vote
1 answer
30 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 ...
user avatar
0 votes
1 answer
89 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 ...
user avatar
  • 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 &...
user avatar
  • 173
0 votes
2 answers
195 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.
user avatar
1 vote
1 answer
71 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 * \ ...
user avatar
  • 1,902
2 votes
1 answer
215 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 ...
user avatar
1 vote
0 answers
159 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 ...
user avatar
  • 323