开发者

Why is Vims html indentation slow and doesn't indent all my html tags?

When I try to set the filetype to xml it works really well and is quiet fast too. Is there a way of indenting html ju开发者_StackOverflow社区st like xml without changing the filetype?


Strange. I've never had such a problem. Anyway, if you want you can set all filetypes detected to be HTML to use XML instead by adding the line below to ~/.vimrc.

au BufRead,BufNewFile *     if &ft == 'html' | set ft=xml | endif
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜