Frage

I'd love to be able to just change the color of a line's sign without any text in it. Is this possible?

War es hilfreich?

Lösung

Vim doesn't like plain spaces for the :sign text= argument, but I've managed to define a sign with a text of two no-breaking spaces (U+00A0):

execute "sign define foo text=\<Char-0xa0>\<Char-0xa0> texthl=WarningMsg"
sign place 42 name=foo line=42 buffer=1
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top