Display or highlight invisible zero width characters in (neo)vim

Viewed 465

How can I display zero width characters in (neo)vim? For example take this line:

This is ㅤsome textㅤ

... which actually has a zero width character before some:

This is \u3164some textㅤ

When I copy and paste the first line into my vim editor it is not displayed:

vim example screenshot

(It actually messes up the cursor, too: character count seems to be wrong and color column is offset.)

How can I make such zero width characters visible in (neo)vim? Is this possible?

It think it would be enough to display it as a question mark or maybe as ☒ or something, so it should actually not be zero width but be single width.

Update 11.11.2021:

I'm using NVIM v0.5.1 on MacOS 12.0.1 and iTerm2 as a terminal emulator.

0 Answers
Related