" Quote-text macro. Use "mm" to mark the beginning of the block. map >> :'m,.s/^/>/ " " HTML Macros " " I designed this set of HTML macros mainly for my personal use. " They're based on the markup tags in the back of _Web_Weaving_ " by Tilton, et. al. Actually, they're taken almost verbatim " from the back of _Web_Weaving_ by Tilton, et. al. If you've " read the book, you'll recognize the organization--by letter, " then alphabetically within that letter. They're also noted " if they're 3.0 or Netscape-specific, as well as if they're " header-specific...all per _Web_Weaving_. " " I had to comment some of the macros out so that they would " all load. I primarily commented out the 3.0 macros, because " they're not widely-supported yet. Comment and uncomment to " your heart's content. " " These macros may be freely copied and modified. If you " find them useful, I'd appreciate hearing about it! " " Peace - doug " drenze@avalon.net " " General Markup Tags " " The Comment Tag map! ;cm Bhi " " A " A HREF (anchor hyperlink) map! ;ah ?" i " " A NAME (named anchor) map! ;an ?" i " " ABBREV (map!eviation) (3.0) "map! ;ab bhhi " " ACRONYM (3.0) "map! ;ac bhhi " " ADDRESS map! ;ad
bhhi " " AU (author) (3.0) "map! ;au bhhi " " B " B (bold) map! ;bo hhhi " " BANNER (3.0) "map! ;ba bhhi " " BASE (head) map! ;bh hi " " BASEFONT (Netscape) "map! ;bf i " " BIG (3.0) "map! ;bi bhhi " " BLOCKQUOTE map! ;bl
O " " BODY map! ;bd O " " BQ (blockquote) (3.0) "map! ;bq bhhi " " BR (line break) map! ;br
" " C " CAPTION (3.0) "map! ;ca bhhi " " CENTER (Netscape) map! ;ce
bhhi " " CITE map! ;ci bhhi " " CODE map! ;co bhhi " " CREDIT (3.0) "map! ;cr bhhi " " D " DD (definition for definition list) " map! ;dd
bhhi " " DEL (deleted text) (3.0) "map! ;de bhhi " " DFN (defining instance) (3.0) "map! ;df bhhi " " DIR (directory list) (3.0) "map! ;di O " " DIV (document division) (3.0) "map! ;dv
bhhi " " DL (definition list) map! ;dl
O " " DT (term for definition list) map! ;dt
bhhi " " E " EM (emphasize) map! ;em bhhi " " F " FIG (figure) (3.0) "map! ;fi ?" i " " FN (footnote) (3.0) "map! ;fn bhhi " " FONT (Netscape) "map! ;fo bhhhi " " H " H1...H6 (headers, level 1-6) map! ;h1

bhhi map! ;h2

bhhi map! ;h3

bhhi map! ;h4

bhhi map! ;h5
bhhi map! ;h6
bhhi " " HEAD map! ;he O " " HR (horizontal rule) map! ;hr
" " HTML (3.0) map! ;ht O " " I " I (italic) map! ;it hhhi " " IMG (image tag) map! ;im :?"" ?? a " " INS (inserted text) (3.0) "map! ;in bhhi " " ISINDEX map! ;ii " " K " KBD (keyboard) map! ;kb bhhi " " L " LANG (language context) (3.0) "map! ;la ?" i " " LI (list item) map! ;li
  • " " LINK (head) map! ;lk hi " " LH (list header) map! ;lh bhhi " " M " MENU map! ;mu O " " META (head) map! ;me ?"" ?? a " " N " NOBR (no break) (Netscape) "map! ;nb bhhi " NOTE (3.0) "map! ;no bhhi " " O " OL (ordered list) (3.0) map! ;ol
    O " " OVERLAY (figure overlay image) (3.0) "map! ;ov hi " " P " P (paragraph) map! ;pp

    " " PRE (preformatted) map! ;pr

    O
    "
    "	Q
    "		Q (quote) (3.0)
    "map! ;qu hhhi
    "
    "	R
    "		RANGE (3.0) (head)
    "map! ;ra Bhi
    "
    "	S
    "		S (strikethrough) (3.0)
    "map! ;sk hhhi
    "		SAMP (sample)
    map! ;sa bhhi
    "		SMALL (3.0)
    map! ;sm bhhi
    "		SPOT (3.0)
    "map! ;sp i
    "
    "		STRONG
    map! ;st bhhi
    "		STYLE (3.0)
    "map! ;sn k/"
    a
    "		SUB (subscript) (3.0)
    map! ;sb bhhi
    "		SUP (superscript) (3.0)
    map! ;sp bhhi
    "
    "	T
    "		TAB (3.0)
    "map! ;ta 
    "		TITLE (head)
    map! ;tb 
    bhhi " TD (table data) map! ;td bhhi " TITLE (head) map! ;ti bhhi " TR (table row) map! ;tr bhhi " TH (table heading) map! ;th bhhi " TT (teletype) map! ;tt bhhi " " U " U (underline) "map! ;uu hhhi " UL (unordered list) map! ;ul
    O " " V " V (variable) (3.0) "map! ;vv hhhi " " W " WBR (word break) (Netscape) "map! ;wb " Special Characters map! ;& & map! ;cp © map! ;" " map! ;< < map! ;> > " " Command-mode tags " " Template creation macro " This macro will invoke a chain of macros which " will create the framework of an HTML document " for you. map ;html :set ai i ;;T1 map ;doc 0i  " Never manually invoke these macros. These are meant to be " automagically invoked by the template-creation macro. If you " just use your own HTML template or something along those lines, " you can simply delete from here to the end of the file. Just " don't try to invoke the template-creation macro after that. :-) " map ;;T1 o ;;T2 map ;;T2 o ;;T3 map ;;T3 o

    ;;T4 map ;;T4 o ;;T5 map ;;T5 o ;;T6 map ;;T6 1Gjjjlllllla " " HTML Macros for VIM's visual mode " These were also written for my personal use and to complement " the macros made by Doug Renze (drenze@avalon.net) that can be " found at: http://www.avalon.net/~drenze/ " Remarks, suggestions and ideas are welcome " " Ives Aerts " ives@sonytel.be " " 1) paragraph style macros " To use these macros, use the `V' command to select a number of lines " and then call the appropriate macro to change the style of those lines. " " ADDRESS HTML 2.0 vmap ;ad xi

    P " " BLOCKQUOTE HTML 2.0 vmap ;bl xi
    P " " BODY HTML 2.0 vmap ;bd xi P " " CENTER NETSCAPE vmap ;ce xi
    P " " DIR Directory List HTML 3.0 vmap ;di xi P " " DL Definition List vmap ;dl xi
    P " " HEADERS, LEVELS 1-6 HTML 2.0 vmap ;h1 xi

    P vmap ;h2 xi

    P vmap ;h3 xi

    P vmap ;h4 xi

    P vmap ;h5 xi
    P vmap ;h6 xi
    P " " HEAD HTML 2.0 vmap ;he xi P " " HTML HTML 3.0 "vmap ;ht xi P " " MENU HTML 2.0 vmap ;mu xi P " " OL Ordered List HTML 3.0 vmap ;ol xi
    P " " P Paragraph HTML 3.0 vmap ;pp xi

    P " " PRE Preformatted Text HTML 2.0 vmap ;pr xi
    P
    "
    "	TITLE				HTML 2.0	HEADER
    vmap ;ti xiP
    "
    "	UL	Unordered List		HTML 2.0
    vmap ;ul xi
    P " " 2) text style macros " To use these macros, use the `v' command to select a portion of text " and then call the approporiate macro to change the style of that text. " " Comment Tag vmap ;cm xi3hP " " ABBREV Abbreviation HTML 3.0 vmap ;ab xi8hP " " ACRONYM HTML 3.0 vmap ;ac xi9hP " " AU Author HTML 3.0 vmap ;au xi4hP " " B Boldfaced Text HTML 2.0 vmap ;bo xi3hP " " BANNER HTML 3.0 vmap ;ba xi8hP " " BIG HTML 3.0 vmap ;bi xi5hP " " BQ Blockquote HTML 3.0 vmap ;bq xi4hP " " CAPTION HTML 3.0 vmap ;ca xi9hP " " CITE HTML 2.0 vmap ;ci xi6hP " " CODE HTML 2.0 vmap ;co xi6hP " " CREDIT HTML 3.0 vmap ;cr xi8hP " " DEL Deleted Text HTML 3.0 vmap ;de xi5hP " " DFN Defining Instance HTML 3.0 vmap ;df xi5hP " " DIV Document Division HTML 3.0 vmap ;dv xi
    5hP " " EM Emphasize HTML 2.0 vmap ;em xi4hP " " FN Footnote HTML 3.0 vmap ;fn xi4hP " " I Italicized Text HTML 2.0 vmap ;it xi3hP " " INS Inserted Text HTML 3.0 vmap ;in xi5hP " " KBD Keyboard Text HTML 2.0 vmap ;kb xi5hP " " LH List Header HTML 2.0 vmap ;lh xi4hP " " NOBR No Break NETSCAPE vmap ;nb xi6hP " " NOTE HTML 3.0 vmap ;no xi6hP " " Q Quote HTML 3.0 vmap ;qu xi3hP " " S Strikethrough HTML 3.0 vmap ;sk xi3hP " " SAMP Sample Text HTML 2.0 vmap ;sa xi5hP " " SMALL Small Text HTML 3.0 vmap ;sm xi7hP " " STRONG HTML 2.0 vmap ;st xi8hP " " SUB Subscript HTML 3.0 vmap ;sb xi5hP " " SUP Superscript HTML 3.0 vmap ;sp xi5hP " " TT Teletype Text HTML 2.0 vmap ;tt xi4hP " " U Underlined Text HTML 2.0 vmap ;uu xi3hP " " V Variable HTML 3.0 vmap ;vv xi3hP " " 3) link macros " To use these macros, use the `v' command to select a portion of text " that should become the description of the link and then call the " appropriate macro. Then use the `c' command to fill in the destination " of the link. " " A HREF Anchor Hyperlink HTML 2.0 vmap ;ah xipa0?\"XXX\"?s+3 v2h " " A NAME Named Anchor HTML 2.0 vmap ;an xipa0?\"XXX\"?s+3 v2h " " FIG Figure HTML 3.0 vmap ;fi xipa0?\"XXX\"?s+3 v2h " " IMG Image HTML 2.0 vmap ;im xipa0?\"XXX\"?s+3 v2h " " 4) other macros " " LANG Language Context HTML 3.0 vmap ;la xipa0?\"XXX\"?s+3 v2h " " STYLE HTML 3.0 vmap ;sn xi0?\"XXX\"?s+3 v2h " " FONT NETSCAPE vmap ;fo xipa0?XXX?s+3 v2h "map! à à; "map! À À; "map! ç ç; "map! Ç Ç; "map! é é; "map! ê ê; "map! è è; "map! ë ë; "map! É É; "map! Ê Ê; "map! È È; "map! Ë Ë; "map! î î; "map! Î Î; "map! ï ï; "map! Ï Ï; "map! ô ô; "map! Ô ô; ""map! û û; "map! Û Û; "map! ù ù; "map! Ù Ù; "map! ü ü; "map! Ü Ü; map! e' é map! e` è map! e^ ê map! e" ë map! a^ â map! a` à map! i^ î map! i" ï map! o^ ô map! o` ò map! u" ü map! u^ û map! u` ù map! c, ç map! E' É map! E` È map! E^ Ê map! E" Ë map! A^ Â map! A` À map! I^ Î map! I" Ï map! O^ Ô map! O` Ò map! U" Ü map! U^ Û map! U` Ù map! C, Ç map! << « map! >> » abbrev (TM) (TM)