Ishu Gupta
Ishu Gupta

Reputation: 55

How to change the cursor line highlighting for one window in vim?

How to change the cursor line highlighting for one window?
I namely want the quick fix with the .vimrc file.

Upvotes: 0

Views: 394

Answers (2)

builder-7000
builder-7000

Reputation: 7627

To set cursor line highlight in quickfix window:

autocmd BufEnter * if &ft=="qf" | setlocal cul | endif

Upvotes: 1

Night Programmer
Night Programmer

Reputation: 341

Patch 8.0.0641 introduced a separate highlight group for the quickfix line, called QuickFixLine. With patch 8.0.0653 this group is linked to the Search highlight by default, because for some color schemes the colors chosen for patch 8.0.0641 did not work well.

So if you have a current version of Vim you can use

 hi QuickFixLine cterm=None ctermbg=256 guibg=#ffff00

to make the current line in the quickfix window more distinguishable.

Upvotes: 1

Related Questions