I have the following in an XML file:
<TypeDef name='a'> <ArrayType high='14' low='0'> <UndefType type='node'> </UndefType> </ArrayType> </TypeDef>
And I want to copy this entry. Normally I’d go to the first line, enter Line-Visual mode using V, go down to the last line, yank and paste.
How can I copy the entire entry without looking for the end of the entry myself?
In addition to Nathan’s answer you might want to check out matchit.vim … If you have a newer install you probably have it
http://www.vim.org/scripts/script.php?script_id=39
matchit extends vim’s % (find matching bracket) to cover xml/html tags and more. So for your solution the action would be from the beginning tag
matchit is of course very useful for general navigating purposes.