formating xml in vim

Posted by Nikolaus Gradwohl Sat, 28 Mar 2009 07:14:00 GMT

i often have to work with xml files that are autogenerated and look very ugly i defined a short keymapping in my .vimrc file that calls xmllint --format - on the current buffer

map xf <ESC>:%!xmllint --format -<CR>

open any xml file and press 'xf' in command mode.

Tags  | no comments | no trackbacks

Tweet This! submit to reddit Digg!

Comments

Trackbacks

Use the following link to trackback from your own site:
http://www.local-guru.net/blog/trackbacks?article_id=formating-xml-in-vim&day=28&month=03&year=2009

(leave url/email »)

   Comment Markup Help Preview comment