From d7b7d79eaa135b0f5f595751f0de34020477e5fd Mon Sep 17 00:00:00 2001 From: yan Date: Tue, 24 Apr 2012 14:29:18 -0700 Subject: [PATCH] Added `,Cmd-R` to rerun last conque commend (re-exec spec) --- README.md | 2 +- vim/plugin/settings/yadr-keymap.vim | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index dec4b61..f0af9b6 100644 --- a/README.md +++ b/README.md @@ -270,7 +270,7 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke #### Rails * `,ss` to run specs, `,ll` to run a given spec on a line - using my [vim-ruby-conque plugin](https://github.com/skwp/vim-ruby-conque) - * `Cmd-Shift-R` to use vim-ruby-conque to run a spec file. `Cmd-Shift-L` to run from a line (individual it block) + * `Cmd-Shift-R` to use vim-ruby-conque to run a spec file. `Cmd-Shift-L` to run from a line (individual it block), `,Cmd-Shift-R` to rerun the last run command (great for re-running specs) #### Surround.vim customizations diff --git a/vim/plugin/settings/yadr-keymap.vim b/vim/plugin/settings/yadr-keymap.vim index 11f2eac..019da5c 100644 --- a/vim/plugin/settings/yadr-keymap.vim +++ b/vim/plugin/settings/yadr-keymap.vim @@ -220,6 +220,8 @@ abbr pry! require 'pry'; binding.pry nmap :call RunRspecCurrentFileConque() " Cmd-Shift-L for RSpec Current Line nmap :call RunRspecCurrentLineConque() +" ,Cmd-R for Last conque command +nmap , :call RunLastConqueCommand() " Get the current highlight group. Useful for then remapping the color map ,hi :echo "hi<" . synIDattr(synID(line("."),col("."),1),"name") . '> trans<' . synIDattr(synID(line("."),col("."),0),"name") . "> lo<" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"name") . ">" . " FG:" . synIDattr(synIDtrans(synID(line("."),col("."),1)),"fg#")