Re: display of listchars characters on the cursorline & visual-mode

489 views
Skip to first unread message

Ingo Karkat

unread,
May 2, 2013, 9:37:48 AM5/2/13
to vim...@googlegroups.com
On 30-Apr-2013 06:38 +0200, nayuri.aohime wrote:

> Hi,
>
> Fixed the display of listchars characters on the cursorline & visual-mode.
> I've created a patch of two patterns.
> I should not be judged because it is personal preference.
>
> SpecialKey_overrides_CursorLine.patch
> -> Every highlighting listchars chatscters.
>
> CursorLine_overrides_SpecialKey.patch
> -> Easy to use because it is similar to the current version.
>
> comparison.png
> -> Please refer.
> It is a comparison image in the following settings.
> :colorscheme delek
> :set cursorline list listchars=eol:$,tab:>-,trail:~,nbsp:%
>
> I prefer the CursorLine_overrides_SpecialKey.patch version.

+1 from me; I also think the CursorLine_overrides_SpecialKey.patch is
better. Thank you for including the graphical comparison; that's really
helpful!

Though purely cosmetic, this issue is indeed disturbing people; e.g. see
the following Stack Overflow questions about this:


http://stackoverflow.com/questions/8248872/in-vim-can-you-stop-the-color-change-of-white-space-characters-with-set-cursorl

http://stackoverflow.com/questions/15606098/set-visibility-and-or-color-of-listchars-or-conceal-cchar-in-vim-when-cursorline

-- regards, ingo
Message has been deleted

nayuri...@gmail.com

unread,
May 2, 2013, 4:37:36 PM5/2/13
to vim...@googlegroups.com
2013年5月2日木曜日 22時37分48秒 UTC+9 Ingo Karkat:
Hi,

I've found a bug in the previous patch, but fixed.
Contents of the bug are:
* set list listchars=eol:$ conceallevel=1 concealcursor=nvic
* syntax match NonText / / conceal cchar=.
* Insert space(0x20), not displayed eol character.

SpecialKey_overrides_CursorLine_ver2.patch
-> Every highlighting listchars chatscters & conceal characters.

CursorLine_overrides_SpecialKey_ver2.patch
-> Easy to use because it is similar to the current version.

This patches is ConcealCharacters will be treated the same as SpecialKey.
Make the other versions it is easy.

Best regards,
DeaR
CursorLine_overrides_SpecialKey_ver2.patch
SpecialKey_overrides_CursorLine_ver2.patch

nayuri...@gmail.com

unread,
May 3, 2013, 3:49:43 AM5/3/13
to vim...@googlegroups.com
2013年5月3日金曜日 5時37分36秒 UTC+9 nayuri...@gmail.com:
Hi,

Sorry, ver2 patches have a bug, but fixed it.
Contents of the bug are:
* :set number foldenable cuesorline
* Not highlighting line number columns & fold columns.

Best regards,
DeaR
CursorLine_overrides_SpecialKey_ver3.patch
SpecialKey_overrides_CursorLine_ver3.patch

mattn

unread,
Nov 25, 2014, 7:34:27 PM11/25/14
to vim...@googlegroups.com
Bram, It's a definite bug, and he provides awesome fix. Let's merge which one!

mattn

unread,
Nov 25, 2014, 8:15:11 PM11/25/14
to vim...@googlegroups.com
On Wednesday, November 26, 2014 9:34:27 AM UTC+9, mattn wrote:
> Bram, It's a definite bug, and he provides awesome fix. Let's merge which one!

presuku updated above patch. This patch is better than above.

https://gist.github.com/presuku/d3d6b230b9b6dcfc0477

Bram Moolenaar

unread,
Nov 27, 2014, 7:26:32 AM11/27/14
to mattn, vim...@googlegroups.com
Thanks. I can't find an item in the todo list for this, did one exist?

--
The chat program is in public domain. This is not the GNU public license.
If it breaks then you get to keep both pieces.
-- Copyright notice for the chat program

/// Bram Moolenaar -- Br...@Moolenaar.net -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.org ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///

Rafael Rinaldi

unread,
Jan 30, 2016, 10:30:42 PM1/30/16
to vim_dev
I wonder if this is ever going to make it to a release? This is the most annoying thing in Vim for me.

Christian Brabandt

unread,
Jan 31, 2016, 4:52:46 AM1/31/16
to vim_dev
Hi Rafael!
This is not a simple patch and it is hard to follow the logic. screen.c
changes are definitely messy and have in the past often broken something
in the past. So can you please tell us, what bug this fixes? Also tests
would be really appreciated ;)


Best,
Christian
--
Gott sei Dank bin ich Atheist!
Reply all
Reply to author
Forward
0 new messages