package vim-scripts tags 465330 patch thanks Upon closer inspection, my "possible fix" in the original report was incorrect. I am attaching a patch with the correct fix.
Fix: remove the line "let loaded_xml_ftplugin = 1" Rational: since loaded_xml_ftplugin is only used by the vim-addons manager to disable the script, not to prevent the script from running twice when it is enabled, the script should not set the variable if it is not already set. The script needs to be able to run more than once for different buffers, and the b:did_ftplugin variable already prevents it from being run twice for the same buffer. ...Marvin
--- /usr/share/vim-scripts/ftplugin/xml.vim 2008-01-25 02:11:30.000000000 -0500 +++ vim-scripts-7.1.6-mrvn/ftplugin/xml.vim 2008-02-12 10:40:30.000000000 -0500 @@ -44,7 +44,6 @@ finish endif let b:did_ftplugin = 1 -let loaded_xml_ftplugin = 1 " WrapTag -> Places an XML tag around a visual selection. {{{1 " Brad Phelan: Wrap the argument in an XML tag