Fix vim hang on xml files

The Syntastic syntax checking plugin validates xml files using xmllint.

You can pass custom arguments to xmllint to enable/disable functions that might be causing the hang.

For me it was the network access, which can be disabled with the –nonet option.

I added the following to my ~/.vimrc

let g:syntastic_xml_xmllint_args = "--xinclude --postvalid --nonet"
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s