拿到一个html文件,全堆在寥寥数行中,格式化之:
详情见这里:[url]http://stackoverflow.com/questions/9987743/format-and-indent-html-in-vim[/url]
:s/<[^>]*>/\r&\r/g
:g/^$/d
=
详情见这里:[url]http://stackoverflow.com/questions/9987743/format-and-indent-html-in-vim[/url]