Remove autocmd causing problems. Add mapping for running specs

This commit is contained in:
yan 2011-12-23 21:05:50 -08:00
parent 0d51708808
commit 10da9de4ff
2 changed files with 5 additions and 8 deletions

View File

@ -181,7 +181,7 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke
* ,ru - Rails Unittest - synonym for :AV from rails.vim, opens up the corresponding test/spec to the file you're looking for, in a vertical split * ,ru - Rails Unittest - synonym for :AV from rails.vim, opens up the corresponding test/spec to the file you're looking for, in a vertical split
* \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) * \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-rspec to run a spec file. Soon to support running individual contexts. * Cmd-Shift-R to use vim-rspec to run a spec file. Cmd-Shift-L to run from a line (individual it block)
**Surround.vim customizations** **Surround.vim customizations**

View File

@ -187,8 +187,5 @@ abbr pry! require 'pry'; binding.pry
" ============================ " ============================
" Cmd-Shift-R for RSpec " Cmd-Shift-R for RSpec
nmap <D-R> :RunSpec<CR> nmap <D-R> :RunSpec<CR>
" Cmd-Shift-L for RSpec Current Line
" If you use a fast_spec directory, Rfastspec can help you find nmap <D-L> :RunSpecLine<CR>
" one of your fast specs
autocmd User BufEnterRails Rnavcommand fastspec fast_spec/ -glob=**/** -suffix=_spec.rb -default=model()