Rick W. Chen wrote: > When filetype-indent is on and opening more than one xml file, cpoptions > is reset to the default value. This is because the xml indent file > finish prematurely when the XmlIndentGet() function has already been > defined. At that point the cpoptions is not restored. > > The command below shows the problem. When vim finishes startup the > cpoptions contains the default value. > > $ vim --noplugin -u NONE -N \ > -c 'filetype indent on' \ > -c 'set cpo+=y$W' \ > -c 'set ft=xml' \ > test.xml \ > -c 'set ft=xml' \ > test2.xml \ > -c 'set cpo?'
Thanks for the fix! I'll include it. Johannes, please check and update your original. -- "Hit any key to continue" is a lie. /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ an exciting new programming language -- http://www.Zimbu.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org /// -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
