> is it possible to make reformated "nice html" (nested HTML source
> code) of edited file in VIM? Is it possible to reformat only
> selected part of file?
You can go into linewise visual mode (Shift-V) and mark the part of
the code that should be properly intended. Then you can:
a) press the key =
b) press the key ! and then type in the command of an external
Alternatively you can press gg=G or :%! plus external command to
clean up the whole file at once.
I know two external commands: xmllint (on Linux or with gnuwin32 or
cygwin) and Dave Raggett's HTML Tidy (http://tidy.sourceforge.net/)
A view day ago, there was already a similar thread "XML Indentation"
on this list. See
and press [next in thread] a view times.
With kind regards