![]() |
created by |
Michael Geddes |
![]() |
script type |
utility |
![]() |
description |
Key Mode Description
Alt+0 all Default Header <HTML> Alt+1..6 all Heading 1..6 <h1..6> Alt+b all Toggle boldface <b> Alt+Shift+b all Toggle big <big> Alt+m all Toggle italic (marked) <i> Alt+u all Toggle underline <u> Alt+p all Toggle paragraph <p> Alt+k all Toggle 'kbd' <kbd> Alt+d all Toggle Table Cell <td> Alt+, all Define unordered list <ul> Alt+. all Define ordered list <ol> Alt+* all Insert list element <li> Alt+> insert Close all open tags. Ctl+CR insert Open line below Shift+CR insert Insert line break<br/> Alt+- all Insert horisontal rule <hr/> ,al normal Paste an external link from the clipboard ,l normal Paste an internal link from register 0 ,yf normal Yank the file name as a URL into the clipboard. Insert mode mappings && -> & &' -> &[lr]squo; &" -> &[lr]dquo; &<space> -> There is also some reasonably intrusive code that will close open tags: try typing this <p>Testing<b>bold</p> This should automatically close the <b> There is a manual insert mode command to close all open tags <m->> (or alt-shift-.) which may need to be remapped for other platforms. Functions FindBack- The main function that handles toggling of HTML commands. It searches backwards for the last token of the specified type, and returns its counterpart. It also closes all nested tags that have been opened. GenerateTOC- Generates a hyper-linked Table of Contents based on <h1>..<h9> headings (overwriting a previously generated one). The optional argument is a string of types for each indent level. Eg. " 1ai." would mean level 1 is default (bullet), level 2 is a numbered list, level 3 has letters and level three has roman numerals. It uses references where it can find them, and generates new ones where it can't. |
![]() |
install details |
This should work as either a file-type plugin (not really tested) or a buffoptions file (using the updated version of buffoptions).
By using buffoptions, this should work with version 5.7 and greater as the 6.0 specific plugin-style codes should be stripped. |
![]() |
![]() | ||||
[01-Aug-2001] 2.1 | (vim 6.0) | Michael Geddes | "Fixed bug that stopped this working as an ftplugin" | |
[07-Jun-2001] 2.0 | (vim 5.7) | Michael Geddes | "Initial upload" |