Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a possibility to display an ä as an ä in Vim?

Is there a possibility to display characters in a Vim window (that is: on the screen) that are different from the underlying characters in the buffer?

For example, if filetype is set to html, I'd (sometimes) like to see html-entities replaced by their humanly readable character (for example an ä instead of ä). Of course, this would entail that the rest of the line after the entity would have to be "shifted" to the left. If this is possible somehow, I'd appreciate any hint into the right direction.

like image 304
René Nyffenegger Avatar asked Feb 10 '11 00:02

René Nyffenegger


1 Answers

If you're using 7.3 or newer, then you can make use of the conceal feature to do that. For example:

syntax match Entity "ä" conceal cchar=ä
like image 52
jamessan Avatar answered Oct 22 '22 16:10

jamessan