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-entit开发者_如何学JAVAies 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.
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=ä
try a plugin:
html_umlaute : replaces german Umlaute with their HTML Encoding on saving
http://www.vim.org/scripts/script.php?script_id=907
html_french : view html entities as accented characters for French
http://www.vim.org/scripts/script.php?script_id=1933
精彩评论