Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Mapping for inferior slime 'run last spec'

  • Loading branch information...
commit 6491c4f7aecbedb3026d74450ecdb3fef0c7d52b 1 parent ebf6af5
ph7 authored
7 vim/bundle/inferior-slime/plugin/inferior-slime.vim
@@ -51,11 +51,18 @@ function! s:InferiorSlimeSpecLine(...)
51 51 silent exec g:InferiorSlimeOpenWinCmd
52 52 endfunction
53 53
  54 +function! s:InferiorSlimeSpecLast(...)
  55 + let args = [g:InferiorSlimeCmd, 'spec', 'last']
  56 + cgetexpr system(join(args, ' '))
  57 + silent exec g:InferiorSlimeOpenWinCmd
  58 +endfunction
  59 +
54 60 command! -nargs=* -complete=file InferiorSlime :call s:InferiorSlime(<f-args>)
55 61 command! -nargs=* -complete=file InferiorSlimeRestart :call s:InferiorSlimeRestart(<f-args>)
56 62 command! -nargs=* -complete=file InferiorSlimeSpecAll :call s:InferiorSlimeSpecAll(<f-args>)
57 63 command! -nargs=* -complete=file InferiorSlimeSpecFile :call s:InferiorSlimeSpecFile(<f-args>)
58 64 command! -nargs=* -complete=file InferiorSlimeSpecLine :call s:InferiorSlimeSpecLine(<f-args>)
  65 +command! -nargs=* -complete=file InferiorSlimeSpecLast :call s:InferiorSlimeSpecLast(<f-args>)
59 66
60 67 " vim: syntax=vim
61 68
1  vim/ruby_mappings.vim
@@ -9,6 +9,7 @@ map <silent> <LocalLeader>rs :!ruby -c %<CR>
9 9 map <silent> <LocalLeader>sa :wa<CR> :InferiorSlimeSpecAll<CR>
10 10 map <silent> <LocalLeader>sb :wa<CR> :InferiorSlimeSpecFile<CR>
11 11 map <silent> <LocalLeader>sf :wa<CR> :InferiorSlimeSpecLine<CR>
  12 +map <silent> <LocalLeader>sl :wa<CR> :InferiorSlimeSpecLast<CR>
12 13 map <silent> <LocalLeader>sr :wa<CR> :InferiorSlimeRestart<CR>
13 14
14 15 map <LocalLeader>rd Orequire 'ruby-debug';debugger<ESC>

0 comments on commit 6491c4f

Please sign in to comment.
Something went wrong with that request. Please try again.