There are syntax errors in vimfiles/ftdetect/gentoo.vim (gentoo-syntax-20041227) that derail correct handling of XML files. One result of this problem is that marks for jumping to the previous location in an XML file are not processed correctly when a file is reopened. Instead the cursor always jumps to the default position. Reproducible: Always Steps to Reproduce: 1. Open a generic XML file (with .xml extension). 2. Move to some location in the middle of the file. 3. Close the file. 4. Reopen the file. Actual Results: The cursor was positioned at the top of the file. Expected Results: The cursor should have been located at its previous position somewhere in the middle of the file. The problem appears to be in the handling of the guidexml filetype at the bottom of the gentoo.vim file in the ftdetect directory. This code is lacking both a final command separator and the closing 'endif'. This problem did not occur until moving to gentoo-syntax-20041227.
HEH! no wonder newmetadata.vim wouldn't work... Fixed upstream.
Woah, how the heck did we miss that? 20050211-r1 includes the fix...