indentLine icon indicating copy to clipboard operation
indentLine copied to clipboard

Background conflicts with Cursorline

Open clemtibs opened this issue 10 years ago • 10 comments

I use both cursorline and cursorColumn and there seems to be a clearing out of the background when the indentLine character meets the cursorline, but not the cursorColumn.

screenshot from 2015-06-06 22 02 03

clemtibs avatar Jun 07 '15 05:06 clemtibs

I was facing the same problem. I checked the docs and found this:

let g:indentLine_noConcealCursor=1

Problem solved for me. You should give it a try too.

magnunleno avatar Aug 11 '15 23:08 magnunleno

nice suggestion, that almost worked....I guess it's better then before, but I'd still like to have it show up there if possible.

screenshot from 2015-08-12 10 10 50

clemtibs avatar Aug 12 '15 17:08 clemtibs

In 06cd61cf7b67e183f84e8a04a89937eb960e9cdb this option was changed to:

let g:indentLine_concealcursor=0

pmendelski avatar Dec 06 '15 11:12 pmendelski

Instead of disappearing the the indent line using g:indentLine_concealcursor=0, Is it possible to just correct the background color of the indent line character to accommodate to CursorLine/CursorColumn's color?

baco avatar Sep 13 '16 21:09 baco

Yeah, it would be very nice if the background color could match the cursorline instead of disappearing the indent character. Thanks!

blark avatar Nov 22 '16 19:11 blark

Would that be possible to add a highlight value that you cna put in your .vimrc or in your theme directly ? From what I understand, everything that has ctermbg will inherit. I don't understand how this would be difficult, but I don't know anything about vimscript either :/

EDIT: After doing some research: what we want is impossible because of the priority of the Conceal characters... On stackoverflow

EDIT2: Would it be possible to change the Conceal background color when we change line ? Or would that be too slow ? Also, why does it work with curso column ?

Luxed avatar Nov 23 '17 16:11 Luxed

I tried setting this NVIM and couldn't get it to work.

image

I tried both let g:indentLine_concealCursor=0 and also with c as small letter.

sriharshachilakapati avatar Oct 11 '18 04:10 sriharshachilakapati

Same little problem here too, it seems we either have to live with a background colour that doesn't match the cursorline:

e.g.

screen shot 2019-02-04 at 9 37 47 pm

Or we lose the indent guides all together on the cursorline but retain the colour:

screen shot 2019-02-04 at 9 37 21 pm

I think it would be awesome to be able to retain the background colour of the cursorline but see the indent guide through it.

Here's an example in Sublime Text for inspiration:

screen shot 2019-02-04 at 9 39 26 pm

Huge thanks for this awesome plugin 😄 Fotis

fgimian avatar Feb 04 '19 10:02 fgimian

In NeoVim works fine :slightly_smiling_face:

baco avatar Feb 04 '19 20:02 baco

Is there a particular vim issue tracking this problem on upstream?

ozars avatar Aug 12 '20 14:08 ozars