Questions tagged [cursorline]

Question about the usage of the option cursorline

Filter by
Sorted by
Tagged with
1 vote
1 answer
49 views

Change the color of CursorLine underline

set cursorline highlight CursorLine cterm=underdotted ctermbg=NONE This creates a nice dotted line under the row that my cursor is on. ctermbg causes the whole row to be highlighted (which I do not ...
AmagicalFishy's user avatar
0 votes
0 answers
122 views

Strange cursorline behavior in Netrw

I'm running Vim 8.2 on macOS 10.14.6 (Mojave) on the native macOS Terminal program. I recently changed my terminal font to Courier 12, Regular weight, and discovered a strangely annoying issue which ...
MattS's user avatar
  • 1
4 votes
1 answer
5k views

How to highlight cursor line number without cursor line?

I want the cursor line number to have a different color than the rest of numbers when cursorline is disabled. The highlight CursorLineNR is only active when set cursorline is set. I could do set ...
KamilCuk's user avatar
  • 265
1 vote
0 answers
42 views

When re-sourcing vimrc, the highlight commands following the colorscheme choice are lost [duplicate]

Given this ~/.vimrc syntax on colo pablo set cul hi CursorLine cterm=bold ctermbg=NONE ctermfg=NONE gui=bold guibg=NONE guifg=NONE hi String ctermfg=red Do the following: open a file, possibly ...
Enlico's user avatar
  • 2,194
1 vote
1 answer
1k views

How to set cursor position in a popup buffer?

I'm tinkering with popups and trying to open one, select a line (namely set the cursor line by pressing mapped keys (Ctrln / Ctrlp)), then close it. The problem is that I cannot select a line, despite ...
d.k's user avatar
  • 692
4 votes
1 answer
11k views

Change Cursorline Style

I activated a cursorline for Vim on the terminal which by default seems to underline the current line. However, I would like it to be more like what the cursorcolumn looks like. Is there a way to ...
Benj's user avatar
  • 165
5 votes
2 answers
1k views

How can I still see underscores with cursorline?

Background and problem I've just discovered how to make the cursor a vertical line in insert mode. This works well with cursorline; even with the thinner cursor, I can still easily find my position. ...
Sparhawk's user avatar
  • 580
0 votes
1 answer
3k views

How do I use `set cursorline` but keep background color highlights e.g. in quickfix window

If I use set cursorline, then lines that have some background color set (like in quickfix windows in vimtex) lose that color. How can I prevent that? For example: In the first picture, the cursor ...
Bananach's user avatar
  • 494
0 votes
2 answers
2k views

no longer can underline current cursor

I built vim from source. But for some reason I can no longer underline my current line when vim loads .vimrc. I have to type underline commands manually which makes it work. Here is the output of my ...
flashburn's user avatar
  • 689
1 vote
2 answers
3k views

How to set CursorLine highlight color for the gruvbox colorscheme [duplicate]

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 ...
stimulate's user avatar
  • 171
2 votes
1 answer
170 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 ...
idbrii's user avatar
  • 651
0 votes
1 answer
100 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 ...
tga's user avatar
  • 419
1 vote
0 answers
380 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 ...
luzzuc's user avatar
  • 11
0 votes
1 answer
73 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 ?
cesces's user avatar
  • 25
0 votes
1 answer
740 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 ...
dccsillag's user avatar
  • 121
2 votes
1 answer
1k 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. ...
Caleb's user avatar
  • 2,245
0 votes
2 answers
2k 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 ...
d.k's user avatar
  • 692
1 vote
0 answers
283 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-...
nowox's user avatar
  • 459
7 votes
1 answer
637 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 ...
tamlok's user avatar
  • 841
4 votes
1 answer
5k views

Vim does not redraw screen and cursorlines remain drawn [closed]

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 ...
Enlico's user avatar
  • 2,194
9 votes
4 answers
3k 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 ...
goldilocks's user avatar