Vim Things Little vim things I find useful tidy_xml.py - python code to make pretty xml Add following mapping to .vimrc: map <F5> :%! python ~/tidy_xml.py %<enter> note: make sure the path for tidy_xml.py is correct. This assumes it is in your home directory.