diff options
author | Teddy Wing | 2019-06-08 00:39:33 +0200 |
---|---|---|
committer | Teddy Wing | 2019-06-08 00:39:33 +0200 |
commit | 880954b216bf16bbd4503a596e2788b77360816e (patch) | |
tree | 765606bfbc6afa5d7e78eac6a09579b91f97069e /ftplugin | |
parent | 1f7b977e7568d0759131c5f91459661f3e030691 (diff) | |
download | dotvim-880954b216bf16bbd4503a596e2788b77360816e.tar.bz2 |
vimrc: Move RSpec mappings to ftplugin/ruby.vim
Since I'm not writing Ruby regularly right now, move these mappings to
the Ruby ftplugin so I don't accidentally try to run a spec in another
language where it makes no sense.
Diffstat (limited to 'ftplugin')
-rw-r--r-- | ftplugin/ruby.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ftplugin/ruby.vim b/ftplugin/ruby.vim index c829abe..e95b70f 100644 --- a/ftplugin/ruby.vim +++ b/ftplugin/ruby.vim @@ -18,6 +18,13 @@ nnoremap <buffer> Zd obyebug<Esc> nnoremap <buffer> ZD Obyebug<Esc> +" RSpec +nnoremap <buffer> <leader>z :call RunCurrentSpecFile() \| call system("date '+%FT%T%z: z' >> ~/.vim/spec-stats.log")<cr> +nnoremap <buffer> <leader>Z :call RunNearestSpec() \| call system("date '+%FT%T%z: Z' >> ~/.vim/spec-stats.log")<cr> +nnoremap <buffer> 🕳 :call RunCurrentSpecFile() \| call system("date '+%FT%T%z: e' >> ~/.vim/spec-stats.log")<cr> +nnoremap <buffer> ⛳ :call RunNearestSpec() \| call system("date '+%FT%T%z: E' >> ~/.vim/spec-stats.log")<cr> + + " Reset Rails test database nnoremap <buffer> <F7> :!RAILS_ENV=test bundle exec rake db:reset<CR> |