ragtag.vim: ghetto HTML/XML mappings (formerly allml.vim)
Clone or download
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc Remove bogus author help tag Aug 5, 2011
plugin Set and unset completeopt in htmlEn and htmlDis Sep 17, 2018
.gitignore .gitignore helptags generated doc/tags Nov 16, 2013
CONTRIBUTING.markdown Add contribution guidelines Mar 29, 2014
README.markdown Add README May 16, 2015



A set of mappings for HTML, XML, PHP, ASP, eRuby, JSP, and more (formerly allml)

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.


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). Some features take note of the filetype and adapt to it.

Maps for editing tags are provided. This includes a couple of "make last word into a tag pair" maps, a doctype map (inserts 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 have been moved to unimpaired.vim.

Enhances surround.vim.


Like ragtag.vim? Follow the repository on GitHub and vote for it on vim.org. And if you're feeling especially charitable, follow tpope on Twitter and GitHub.


Copyright (c) Tim Pope. Distributed under the same terms as Vim itself. See :help license.