From 6cefaf13f788d50fece806a027323bc7b5f040f1 Mon Sep 17 00:00:00 2001 From: yan Date: Mon, 7 May 2012 23:55:41 -0700 Subject: [PATCH] vim: ,# and ," for wrapping words in ruby interpolation or quotes --- README.md | 1 + vim/plugin/settings/yadr-keymap.vim | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/README.md b/README.md index 966486ee..db78958b 100644 --- a/README.md +++ b/README.md @@ -333,6 +333,7 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke * `Cmd-'` and `Cmd-"` to change content inside quotes * Cmd-Space to autocomplete. Tab for snipmate snippets. * `,ci` to change inside any set of quotes/brackets/etc + * `,#` and ',"' to surround a word in #{ruby interpolation} or "quotes" #### Tab Navigation diff --git a/vim/plugin/settings/yadr-keymap.vim b/vim/plugin/settings/yadr-keymap.vim index 8f1ebfd8..8fcffafe 100644 --- a/vim/plugin/settings/yadr-keymap.vim +++ b/vim/plugin/settings/yadr-keymap.vim @@ -38,6 +38,11 @@ imap _ imap - imap - +" ,# Surround a word with #{ruby interpolation} +map ,# ysiw# +" ,# Surround a word with quotes +map ," ysiw" + " gary bernhardt's hashrocket imap =>