Quantcast
Channel: Martin Fournier
Viewing all articles
Browse latest Browse all 23

How to format XML in GVIM

$
0
0

In this tutorial we are going to format an XML via the VIM tool

 First, highlight the XML you want to format.

Then, in normal mode, type 

! xmllint --format -

Your command-line at the bottom will look like this:

:'<,'>!xmllint --format -

Then hit enter.

 If you are using vim on windows you will need to make xmllint available to the console.  I download this application

https://code.google.com/archive/p/xmllint/downloads 

and I updated my windows %PATH% variable to point to it. 

The post How to format XML in GVIM appeared first on Martin Fournier.


Viewing all articles
Browse latest Browse all 23

Trending Articles