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

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.