开发者

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

开发者 https://www.devze.com 2023-02-16 05:15 出处:网络
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 n

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

精彩评论

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