-
Notifications
You must be signed in to change notification settings - Fork 41
Home
The plugin needs some help. Anyone interested in making this plugin better please fork this repository. I excitedly look forward to pull requests.
This plugin is still maintained but I don't use it anymore. I have traded this in favor for zen-coding. Any contribution is welcome. I have not abandoned this; I am not as motivated to make new features at this time. Thank you. (Fork this if you want to add more)
This script provides some convenience when editing XML (and some SGML including HTML) formated documents. It allows you to jump to the beginning or end of the tag block your cursor is in. '%' will jump between '<' and '>' within the tag your cursor is in. When in insert mode and you finish a tag (pressing '>') the tag will be completed. If you press '>' twice it will complete the tag and place the cursor in the middle of the tags on it's own line.
This new version has the documentation coupled with the script. You only need one file xml.vim.
Place this file in your ftplugin directory (i.e. ~/.vim/ftplugin/xml.vim
) Type :help ftplugins for more information on installation.
The documentation will install automatically the first time the plugin is ran. NOTE The first time the plugin is ran is NOT the first time VIM is ran. Because this is a file plugin you have to open an XML document to execute the script. So open a new test.xml file at first.
The html.vim
script that came with the old tarball is now in the documentation as an example. to use it just copy/paste it into the file html.vim
. See :help xml-plugin-html
after the documentation installs.