When text editing with vim under konsole, I'd like to see all characters, including notably soft hyphens (­
) and narrow no-break spaces ( 
). Right now I only see these characters when the cursor is on them, and otherwise everything after is moved one place to the left, which leads to much confusion. For instance, with syntax highlighting I see this in vim:
<p class="txt"><span>(«Par bonheur...») </span></p>
while the real text is (_
means a narrow no-break space here):
<p class="txt"><span>(«_Par bonheur..._»)</span></p>
and, if I try to put the cursor on the e
, what I see is:
<p class="txt"><span>(«Par bon heur...») </span></p>
with the cursor on the h
, because the column where the e
appears initially is actually where the h
is. Without syntax highlighting the </span></p>
part is shoved to the left as well.
I don't know if this a font issue, a vim issue, a KDE issue or what. I've tried all available fonts in my system and they all behave the same. Is there any solution?
EDIT: :set list
would be nice, if I could include these characters in listchars
, but only some predefined ones are available.
(« Par bonheur... »)
` displays fine here. You should try with GVim and other editors. – romainl Oct 12 '14 at 20:06