formating xml in vim

Nikolaus Gradwohl2009-03-28T08:14:00+00:00

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.

Tweet This! submit to reddit Digg! Tags: | no comments | no trackbacks

See also:

Javascript and Typescript link-collection
ascii flower with bee
Ascii-art robot
SuperCollider on Linux

Trackbacks

Comments

Leave a response

Leave a comment