Skip to content

johnbradley/vim-fix-xml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

fix-xml.vim

Adds a function/command to format the current xml file using xmllint --format. The command is mapped to ":FX" run this in any xml file. If there is an error the error will be shown. This requires xmllint to be installed and in your $PATH.

Installation

From the command line run the following:

mkdir -p ~/.vim/plugin
cd ~/.vim/plugin
wget http://raw.github.com/johnbradley/vim-fix-xml/master/fix-xml.vim --no-check-certificate

then add th following to ~/.vimrc:

:command FX :call FixXML()

About

VIM plugin that uses xmllint to format xml documents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published