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
精彩评论