That character is used so much in Persian writing. And it makes the text difficult to read. I tried to make my terminal display it correctly but I couldn't I was wondering maybe I could use vim syntax concealing to get rid of it. Can I? How?
1 Answer
:syntax match ZeroWidthNonJoiner "[\u200c]" conceal cchar=😄
You need to check :h conceallevel
, I set it to 2
personally. Otherwise, you may not get conceal to work as you expect.
-
this is displaying 😄 instead of the character. I want it to disappear Commented Oct 12, 2019 at 15:39
-
@yukashimahuksay there's no way to disappear characters afaik, you can only substitute for another visible one.– oblitumCommented Oct 12, 2019 at 15:42
-
@yukashimahuksay maybe replacing for a whitespace is good enough.– oblitumCommented Oct 12, 2019 at 15:45
-
intrestingly, I did that and also cleared the highlight and now it appears just as I want. without showing anything. Commented Oct 12, 2019 at 17:21