diff options
author | Matt Singleton <matt@xcolour.net> | 2011-12-19 02:23:46 -0500 |
---|---|---|
committer | Matt Singleton <matt@xcolour.net> | 2011-12-19 02:23:46 -0500 |
commit | 4c8346948c404ec9c6d69cf352f0e9d89e50b2e8 (patch) | |
tree | 0468f861c6e41fb7c9210a962955b7bdcc3ba48e /vim/plugin/rspec.vim | |
parent | bfc70101a4e58bfef1b64a711de849b20be5702c (diff) |
get rid of all the old cruft
Diffstat (limited to 'vim/plugin/rspec.vim')
-rw-r--r-- | vim/plugin/rspec.vim | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/vim/plugin/rspec.vim b/vim/plugin/rspec.vim deleted file mode 100644 index d244476..0000000 --- a/vim/plugin/rspec.vim +++ /dev/null @@ -1,36 +0,0 @@ -fun! GetRubyBin() - for [key, val] in items(g:ruby_bin_list) - if match(expand("%:p"), key) == 0 - return val - endif - endfor - return "ruby" -endfun - -fun! GetSpecBin() - for [key, val] in items(g:spec_bin_list) - if match(expand("%:p"), key) == 0 - return val - endif - endfor - return "spec" -endfun - -fun! GetLibDirs() - let l:lib_dirs = [] - for [key, val] in items(g:lib_dirs_list) - if match(expand("%:p"), key) == 0 - call extend(l:lib_dirs, val) - endif - endfor - return "-I\"".join(l:lib_dirs, "\" -I\"")."\"" -endfun - -fun! RunSpec() - let l:current_file = expand("%:p") - let l:ruby_bin = GetRubyBin() - let l:spec_bin = GetSpecBin() - let l:lib_dirs = GetLibDirs() - let l:cmd = l:ruby_bin." ".l:lib_dirs." ".l:spec_bin." ".l:current_file - exec "!".l:cmd -endfun |