This is a mirror of http://www.vim.org/scripts/script.php?script_id=2665
" Html macros and mappings for:
" ------------------------------------------
"
" Closing an opening tag
" Wrapping text with tags
" Increasing the weight of header tags (...)
"
Formatting text inside a pair of tags
" Rearranging content vertically
" Stripping outer tags
" * 'Spacing' vertically the content of a pair of tags
"
" 1. Close an opening tag
" -----------------------
"
" >> : newline (write quickly a second > after the first one)
" >/ :
" <? : <?php ?>
"
" 2. Wrapping:
" ------------
"
" +-----------+-------------------+
" | paragraph | WORD or selection |
" +-------+-----------+-------------------+
" |
| @u | u |
" | | @o | o |
" | | @p | p |
" |
| @d | d |
" +-------+-----------+-------------------+
"
" Note: u and o work on fully selected lines only
"
" Note: mnemo for paragraphs and lines: wrap @ll
"
" Note: You can use a count with the mappings
"
" +------+-------------------+
" | line | WORD or selection |
" +------------+------+-------------------+
" |
| @t | |
" | | @a | a |
" | | @s | s |
" | | @h | h |
" | - | @l | l |
" | | @c | c |
" | | @e | e |
" | | @b | |
" +------------+------+-------------------+
"
" 3. Insert an image
" ------------------
"
" @i ()
"
" 4. Set the class of a tag
" -------------------------
"
" :Class ul ->
(default)
" :Class ul bg_blue ->
"
" Note: Try using :C or :Cl or... instead of :Class. Depending on the
" installed plugins, a shorter or longer abbreviation might work.
"
" Shortcuts: (:C shortcut)
" d, s, u, o, h, l, t, i, e, b
" div, span, ul, ol, h1, li, td, img, em, strong
"
" Note: If you don't want to write a tag manually, you can use
" after :Class to autocomplete your tag.
" (put a space after :Class before hitting )
"
" 5. <hn -> <hn+1 (Use after a @h or h)
" --------------------------------------
"
" @j (mnemo: j is just besides h on the keyboard)
"
" 6. gq inside a pair of tags
" ---------------------------
"
" @g for standard tags
" g for or <?php ?>
"
" 7. Rearrange content vertically
" --------------------------------------------
"
" @r for standard tags
"
for or <?php ?>
"
" 8. Strip outer tags
" -------------------
"
" @x for standard tags
" x for or <?php ?>
"
" 9. 'Space' vertically the content of a pair of tags
" ---------------------------------------------------
"
" @m for standard tags (mnemo:
)
" m for or <?php ?>
"
" A detailed help is in the comments of the file itself!
|