2

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 1

3
: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.

4
  • 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.
    – oblitum
    Commented Oct 12, 2019 at 15:42
  • @yukashimahuksay maybe replacing for a whitespace is good enough.
    – oblitum
    Commented 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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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