Vim, Tidy, Windows
Getting Vim and Tidy to play nice on Windows.
Tidy is a nice little app to pretty-print / beautify your XML (html, etc.). It’s straight-forward to get working with Vim on Windows.
(I assume Vim is already installed)
1. Get the Tidy binary. Drop that somewhere on your system. (I dropped it in the root, c:\)
2. Edit c:\program files\Vim\vim7x\ftplugin\xml.vim
– If file doesn’t exit then create it
– For 64-bit os edit – c:\program files (x86)\…
map <F5> :%! c:\tidy.exe -q -i -xml % <CR>
This will map F5 to run tidy on the current buffer
You can find my xml.vim in my github config files repo.
Leave a comment