I've noticed that omnicomplete and keyboard motions don't work in XML files with a
<link> tag as expected. For example
<related-links scope="external" format="html"> <link href="www.example.org"> <linktext>Example Link</linktext> </link> </related-links>
If I put the cursor within the
<link>...</link> block and press vit, I would expect to select lines 2-4. Instead it selects the outer tag (
<related-links> in this case).
Another example of this issue happened with the following XML file:
<related-links scope="external" format="html"> <link href="www.example.org"> <linktext>Example Link</linktext>
I should be able to type Ctrl+x,Ctrl+o to invoke omnicomplete to close the
<link> tag. Instead it skips it and closes the
<related-links> tag instead.
I've noticed this issue with a few different versions of Vim. Is this the intended behavior of the built-in XML ft? If so, why?
I am able to reproduce this with
vim --noplugin -u NONE -N (if I set
:filetype indent plugin on after starting Vim). This was with Vim 7.2.