I tried below steps for xml it worked, I hope this will work for html too.1) first join all the lines - ggVGgJ2) Now break tags to new lines - :%s/>\s*</>\r</g3) Now set filetype - :set ft=html (you can do this before too)4) Now Indent - ggVG=转自:http://www.quora.com/How-do-you-auto-fo...【阅读全文】