Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cursorline]

Question about the usage of the option cursorline

1
vote
2answers
23 views

How to set CursorLine highlight color for the gruvbox colorscheme

When I use the colorscheme gruvbox (installed with vim-plug), it overrides my configuration of the Cursorline highlight, eg set cursorline hi CursorLine cterm=NONE ctermbg=black with the same color ...
2
votes
1answer
43 views

Enable cursorline only in preview window?

How can I enable 'cursorline' in the preview window? I use :ptag to show the preview and like that it shows several lines, but for short functions or member lists it's hard to see the line containing ...
0
votes
1answer
47 views

Is there anyway to let cursorline take care of the visual tabs generated by 'breakindent'?

now the cursorline leaves a hideous gap between the number column and the wrapped text, is there any way or trick to make the cursorline take care of the whole part of the wrapped line including the ...
1
vote
0answers
43 views

Vim CursorLine default color

I run Vim in terminal and it was keeping to override the background color using it's own, so I added this lines to my .vimrc highlight Normal ctermbg=NONE highlight nonText ctermbg=NONE and ...
0
votes
0answers
91 views

Change cursor line under visual mode

How to change cursor line while inside visual mode? Is there similar command to: autocmd InsertEnter * highlight CursorLine ctermbg=Black ctermfg=Red guibg=Red like: VisualEnter ?
0
votes
1answer
31 views

Isolate a matched virtual column ruler to the cursorline only?

I'd like to add ruler marks/virtual columns along the lines of matchadd('ColorColumn', '\%81v', 100) while restricting their display to the cursorline. Any ideas ?
0
votes
1answer
195 views

Cursorline/Columnline slowdown

I have recently recompiled vim, and ever since, when I have a big file, the scrolling gets slow. cursorline seems to be the problem; it doesn't matter if I use any of my plugins, if I have cursorline ...
2
votes
1answer
203 views

Automatically disable cursorline when in diff mode?

I typically use set cursorline by default and it works reasonably well with my preferred color schemes (molokai, vividchalk, moonfly). In normal mode. In diff mode, it almost always screws things up. ...
0
votes
2answers
550 views

How to change the cursor line higlighting only for one window (namely the quickfix one)?

I want the cursor line in the quickfix window to be more distinguishable, than in other windows. Initially I thought that there has to be some different highlight group, it seemly turned out to be ...
1
vote
0answers
156 views

Improperly highlighted when used with cursorcolumn

With this minimal .vimrc I get a highlight conflict in several situations. set nocompatible set runtimepath +=~/.vim/bundle/Vundle.vim filetype off call vundle#begin() Plugin 'itchyny/vim-...
6
votes
1answer
220 views

Enable cursorline and cursorcolumn after Quickfix window is opened

Due to performance, I disable the cursorline and cursorcolumn in Vim. However, in the case jumping through a Quickfix window, it is hard to locate the cursor in the file. So I would like to enable ...
2
votes
1answer
1k views

Vim does not redraw screen and cursorlines remain drawn

I think this question of mine should be closed, since I do not have access to that computer anymore, so I can't check wheter the answers are effective solutions or not. I never had this problem, but ...
7
votes
3answers
780 views

SpecialKey foreground color w/ cursorline set

In this Q&A, it's observed that there is a highlight group for CursorLineNr, which applies to the line number for the cursor line when set cursorline is on. I notice that using cursorline also ...