sponsor Vim development Vim logo Vim Book Ad

xhtml.vim : keyboard shortcuts and GUI menu for xhtml tags

 script karma  Rating 37/16, Downloaded by 1713  Comments, bugs, improvements  Vim wiki

created by
Donald Bindner
 
script type
ftplugin
 
description
This script creates shortcuts for most xhtml tags, and in gvim it adds a menu for the various tags.  Shortcuts are triggered by the semicolon.  For example ;li will create open and close "list item" tags and leave the cursor between them.  Similarly ;im creates an image tag and leaves the cursor in the first field.

Ctrl-J is bound to a kind of "jump" and will generally place the cursor at the next place you would want to type (the next field or the place just before the next tag starts).

There are bindings for the 3 modes; command mode, insert mode, and visual mode; as well as some special characters like ;cp (copyright symbol) and ;< (less than symbol).
 
install details
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
xhtml.vim 1.0 2002-10-15 6.0 Donald Bindner Initial upload
ip used for rating: 3.14.253.152

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.
   
Vim at Github