Skip to content

Instantly share code, notes, and snippets.

@maxbeizer
Created July 23, 2014 23:09
Show Gist options
  • Save maxbeizer/b3d08fdb35f6035c6ec9 to your computer and use it in GitHub Desktop.
Save maxbeizer/b3d08fdb35f6035c6ec9 to your computer and use it in GitHub Desktop.
Mappings for Ragtag.vim ❤️ tpope
CTRL+X / Close the last open HTML tag
CTRL+X SPACE Create open/close HTML tags from the typed word
CTRL+X CR The same as CTRL+X SPACE but puts a new space in between
CTRL+X ! Insert HTML doctype
CTRL+X @ Insert CSS stylesheet
CTRL+X # Insert meta content-type meta tag
CTRL+X $ Load JavaScript document
For the following mappings, suppose that
you have typed "foo".
Mapping Result
--------- -----------
CTRL+X = foo<%= | %>
CTRL+X + <%= foo| %>
CTRL+X - foo<% | %>
CTRL+X _ <% foo| %>
CTRL+X ' foo<%# | %>
CTRL+X " <%# foo| %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment