Reputation: 55
How to change the cursor line highlighting for one window?
I namely want the quick fix with the .vimrc
file.
Upvotes: 0
Views: 394
Reputation: 7627
To set cursor line highlight in quickfix window:
autocmd BufEnter * if &ft=="qf" | setlocal cul | endif
Upvotes: 1
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