diff options
| -rw-r--r-- | ftplugin/ruby.vim | 7 | ||||
| -rw-r--r-- | vimrc | 10 | 
2 files changed, 10 insertions, 7 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> @@ -423,6 +423,9 @@  "       * Use Gundo when -python3 and Undotree when +python3.  "       * Focus Undotree window when toggled.  " +"   2019.06.07: +"       * Move RSpec mappings to ftplugin/ruby.vim. +"  " Pathogen @@ -643,13 +646,6 @@ let g:slimv_impl = 'sbcl'  let g:slimv_swank_cmd = '! screen -d -m -t REPL-SBCL sbcl --load ~/.vim/bundle/slimv/slime/start-swank.lisp' -" RSpec -nnoremap <leader>z :call RunCurrentSpecFile() \| call system("date '+%FT%T%z: z' >> ~/.vim/spec-stats.log")<cr> -nnoremap <leader>Z :call RunNearestSpec() \| call system("date '+%FT%T%z: Z' >> ~/.vim/spec-stats.log")<cr> -nnoremap 🕳 :call RunCurrentSpecFile() \| call system("date '+%FT%T%z: e' >> ~/.vim/spec-stats.log")<cr> -nnoremap ⛳ :call RunNearestSpec() \| call system("date '+%FT%T%z: E' >> ~/.vim/spec-stats.log")<cr> - -  " Go  let g:go_version_warning = 0  let g:go_fmt_command = 'goimports' | 
