" XHTML.vim - version 1.0 - Macros and menus for xhtml documents " " Copyright 2002 by Donald J. Bindner " Permission to copy this document or make derivative works is granted " without condition. " " Inspired by a similar work by: " T Scott Urban urban@unix.mauigateway.com " " This file is program-generated, hence the general lack of comments. " " Each tag may be accessed by its short cut (and by the menu if using a gui) " in each of 3 modes. For most tags, these rules apply: " " Insert Mode: " Inserts the tag (and its closing tag when applicable) at the current " cursor position. The cursor is moved to the contents of the first " attribute when one exists or after the start tag otherwise. " " Normal Mode: " Inserts the tag (and its closing tag when applicable) on the line before " the current line. The cursor is placed as above. " " Visual Mode: " For tags having attributes, tags are placed with the highlighted region in " the contents of the first attribute (typically href or name). For tags " that do not contain attributes, the highlighted region is placed between " directly after the open tag. " " That said, lists are somewhat different. " " Lists: " When creating an ordered or unordered list in visual mode, the highlighted " lines will be individually enclosed in
pairs (i.e. each line " will be an item in the list). " " When a definition list is created in visual mode, the lines will be " processed similarly. The first word on each line will become the " definition term, and the remainder will be the definition description. " " Other: " The character CTRL-J has been redefined to "jump" to the next attribute " content field or the non-whitespace character after a tag closes. " " There are two commands :Quote and :Unquote that take ranges and will " quote or unquote respectively any &, <, > symbols on each line. This " makes it convenient to show html code in a page. " "---------- " " Only do this when not done yet for this buffer if exists("b:did_ftplugin") finish endif " Don't load another plugin for this buffer let b:did_ftplugin = 1 "---------- "comment tag nnoremap