From 5cf12e2110b6e4f7d21ac67465c7abe1b2023f50 Mon Sep 17 00:00:00 2001 From: yan Date: Mon, 19 Dec 2011 00:11:26 -0800 Subject: [PATCH] Added :Rfastspec command to find specs in fast_spec dir (or ,lf with lusty juggler) --- vim/plugin/settings/lusty-juggler.vim | 1 + vim/plugin/settings/skwp-keymap.vim | 3 +++ 2 files changed, 4 insertions(+) diff --git a/vim/plugin/settings/lusty-juggler.vim b/vim/plugin/settings/lusty-juggler.vim index 03c3921..38cdcb4 100644 --- a/vim/plugin/settings/lusty-juggler.vim +++ b/vim/plugin/settings/lusty-juggler.vim @@ -27,6 +27,7 @@ map ,lh :LustyFilesystemExplorer app/helpers map ,ll :LustyFilesystemExplorer lib map ,lp :LustyFilesystemExplorer public map ,ls :LustyFilesystemExplorer specs +map ,lf :LustyFilesystemExplorer fast_spec map ,lt :LustyFilesystemExplorer test let g:LustyJugglerSuppressRubyWarning = 1 diff --git a/vim/plugin/settings/skwp-keymap.vim b/vim/plugin/settings/skwp-keymap.vim index 59b757b..bd49365 100644 --- a/vim/plugin/settings/skwp-keymap.vim +++ b/vim/plugin/settings/skwp-keymap.vim @@ -185,4 +185,7 @@ nmap ,bc :ClearBookmarks " snippets that are expanded with space abbr pry! require 'pry'; binding.pry +" If you use a fast_spec directory, Rfastspec can help you find +" one of your fast specs +autocmd User BufEnterRails Rnavcommand fastspec fast_spec/ -glob=**/** -suffix=_spec.rb -default=model()