In my vimrc I set cpoptions+=n. Usually this option stays enabled, but as soon as I open an XML file it gets disabled. I’ve looked through the vim folder for things that modify cpo but can’t see anything interesting (other than some saving and restoring of the options so that -=C can be used, but commenting those out changes nothing).
Any idea what’s causing this or some pointers as to what to look for?
Open a XML file and run
:verbose set cpoptions?. This will show you the current value of the setting and what file set that value. This setting is likely being overridden by the syntax file for xml (it is in my case).Edit: Although this normally helps, it seems in this case there are many files loaded for the XML filetype that simply save cpo off, change it for their script, then restore the original value. It doesn’t look like this is going to help you much.
You may have better luck opening up an XML file and running
:scriptnames, then grepping through those scripts listed forcpoto see if you can find the culprit.