(I know the goals are dumb, and I know I could set
ffs=unix,dos to not see
^M; I'm just trying to understand more about vim).
I was playing around with vim keywords, because I want to conceal certain things. I was able to successfully hide a keyword with syntax like this:
syn keyword Windows happy conceal cchar=A set conceallevel=2
This would successfully create a keyword group called "Windows" that conceals
happy and replaces it with
A in my text.
I cannot do the same with control characters:
syn keyword Windows ^M conceal cchar=A set conceallevel=2
Whether I type out ^M or use CtrlVCtrlM, I am unable to conceal a control character.
:help syn mentions anything about control characters being excluded (it only says I can't have
cchar be a control character).
What am I doing wrong?