VIM: tidy up HTML








First enable filetype indent then set filetype to html, then enable smartident:
:filetype indent on
:set filetype=html
:set smartindent
Then re-format the file using the following commands:
1G      # go to the beginning of file
gg=G    # reformat the file from the beginning



No comments:

Post a Comment