Want to take your software engineering career to the next level? Join the mailing list for career tips & advice Click here


ragtag.vim: ghetto HTML/XML mappings (formerly allml.vim)

Subscribe to updates I use vim-ragtag

Statistics on vim-ragtag

Number of watchers on Github 275
Number of open issues 5
Average time to close an issue 2 months
Main language VimL
Average time to merge a PR 2 days
Open pull requests 2+
Closed pull requests 14+
Last commit about 3 years ago
Repo Created over 10 years ago
Repo Last Updated over 2 years ago
Size 63 KB
Homepage http://www.vim.or...
Organization / Authortpope
Page Updated
Do you use vim-ragtag? Leave a review!
View open issues (5)
View vim-ragtag activity
View on github
Fresh, new opensource launches 🚀🚀🚀
Software engineers: It's time to get promoted. Starting NOW! Subscribe to my mailing list and I will equip you with tools, tips and actionable advice to grow in your career.
Evaluating vim-ragtag for your project? Score Explanation
Commits Score (?)
Issues & PR Score (?)


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 <?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 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.

vim-ragtag open issues Ask a question     (View All Issues)
  • over 4 years Using <?= ?> instead of <?php echo ?> in PHP
  • over 4 years Better support for django
  • about 5 years Wrong tag autocompletion
  • almost 7 years Readme?
vim-ragtag open pull requests (View All Pulls)
  • Use ftdetect mechanism with `setf html`
  • Enable for Handlebars files
vim-ragtag list of languages used
  • Vim script
Other projects in VimL