allml.vim : A set of mappings for HTML, XML, PHP, ASP, eRuby, JSP, and more
script karma |
Rating 14/5,
Downloaded by 292 |
created by |
Tim Pope |
|
script type |
utility |
|
description |
This plugin started out as a set of personal mappings, but there was enough enjoyment among those I shared it with for me to clean it up and release it. This script is still evolving (and I do appreciate feedback) but it is already in a highly functional state.
Features:
While there are several HTML and XML scripts on vim.org, I have found none that share a significant amount of functionality with allml.vim.
A huge variety of filetypes are supported: html, xhtml, wml, xml, xslt, xsd, jsp, php, aspperl, aspvbs, cf, mason, htmldjango, and eruby. (Let me know if I missed any, lest the "all" in "allml" be a lie). Some features take note of the filetype and adapt to it.
Maps for editing tags. This includes a couple of "make last word into a tag pair" maps, a doctype map (inserts <?xml ...?> in XML), a "close last tag" map, and a few extra goodies.
For templating languages (ASP, PHP, etc.), there are maps for inserting template code. The maps are dependent on the filetype: in ASP, you get <% %> and <%= %>, in PHP, <?php ?> and <?php print ?>, etc. If said template language has a comment syntax, there is a map for it, otherwise, that map points to <!-- -->.
Maps for XML/HTML escaping and URL encoding. These work on either a given motion or the visual selection, in the usual Vim manner.
Enhances surround.vim, vimscript#1697.
|
|
install details |
Install in ~/.vim/plugin or ~\vimfiles\plugin (Windows). If you want the XML escaping/URL encoding mappings available globally, add the following to your vimrc:
let g:allml_global_maps = 1
There is not a separate help file yet. Documentation appears in comments at
the top of the script.
|
|
script versions (upload new version)
Click on the package to download.
|