*ragtag.txt* Ghetto XML/HTML mappings (formerly allml.vim)
Author: Tim Pope *ragtag-author*
License: Same terms as Vim itself (see |license|)
This plugin is only available if 'compatible' is not set.
INTRODUCTION *ragtag*
These are my personal mappings for XML/XHTML editing, particularly with
dynamic content like PHP/ASP/eRuby. Because they are personal, less effort
has been put into customizability (if you like these mappings but the lack of
customizability poses an issue for you, let me know). Examples shown are for
eRuby.
You might find these helpful in your vimrc:
>
inoremap o
inoremap
let g:ragtag_global_maps = 1
<
MAPPINGS *ragtag-mappings*
The table below shows what happens if the binding is pressed on the end of a
line consisting of "foo".
Mapping Changed to (cursor = ^) ~
= foo<%= ^ %> *ragtag-CTRL-X_=*
+ <%= foo^ %> *ragtag-CTRL-X_+*
- foo<% ^ %> *ragtag-CTRL-X_-*
_ <% foo^ %> *ragtag-CTRL-X__*
' foo<%# ^ %> *ragtag-CTRL-X_'*
(mnemonic: ' is a comment in ASP VBS)
" <%# foo^ %> *ragtag-CTRL-X_quote*
^ *ragtag-CTRL-X_*
\n^\n *ragtag-CTRL-X_*
/ Last HTML tag closed *ragtag-CTRL-X_/*
! / (menu) *ragtag-CTRL-X_!*
@ *ragtag-CTRL-X_@*
(mnemonic: @ is used for importing in a CSS file)
# *ragtag-CTRL-X_#*
$ *ragtag-CTRL-X_$*
(mnemonic: $ is valid in javascript identifiers)
For the bindings that generate HTML tag pairs, in a few cases, attributes will
be automatically added. For example, script becomes >