开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜