xmledit - A filetype plugin to help edit XML, HTML, and SGML documents : vim online
Keywords: Vim, Vi IMproved, text editor, home, documentation, tips, scripts, news

xmledit : A filetype plugin to help edit XML, HTML, and SGML documents
script karma | Rating 1534/606, Downloaded by 43984 | Comments, bugs, improvements | Vim wiki
created by
Devin Weaver
script type
ftplugin
description
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. For the latest development snapshot visit http://github.com/sukima/xmledit/ Please fork this project. We need help making this better.
install details
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. ChangeLog and older versions availiable on request.
script versions (upload new version) Click on the package to download.
package | script version | date | Vim version | user | release notes
--- | --- | --- | --- | --- | ---
xmledit-1.9.1.vba | 1.9.1 | 2010-07-22 | 7.0 | Devin Weaver | Adds a global disable switch Updated to vimball packaging (compatible with pathogeon)
xml.vim | 1.84 | 2009-04-07 | 7.0 | Devin Weaver | Latest development build after move to Git repository. No new features.
xml.vim | 1.29 | 2005-05-14 | 6.0 | Devin Weaver | Fixed some documentation. Added <a> tag to html example. Added Visual select tag mapping. Cosmetics

| If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly. Questions about Vim should go to the maillist. Help Bram help Uganda. | OSDN |