1

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?

2
: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 – yukashima huksay Oct 12 at 15:39
  • @yukashimahuksay there's no way to disappear characters afaik, you can only substitute for another visible one. – pepper_chico Oct 12 at 15:42
  • @yukashimahuksay maybe replacing for a whitespace is good enough. – pepper_chico Oct 12 at 15:45
  • intrestingly, I did that and also cleared the highlight and now it appears just as I want. without showing anything. – yukashima huksay Oct 12 at 17:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.