Permalink
Browse files

got rid of the spin command in favor of vim-vroom

  • Loading branch information...
1 parent 208a1c0 commit 595b065903fd28d754344c9a8e673aa4b2ab8a26 @paukul committed May 10, 2012
Showing with 4 additions and 29 deletions.
  1. +3 −0 .gitmodules
  2. +1 −0 bundle/vim-vroom
  3. +0 −29 ftplugin/ruby.vim
View
@@ -74,3 +74,6 @@
path = bundle/vim-powerline
url = https://github.com/Lokaltog/vim-powerline.git
ignore=dirty
+[submodule "bundle/vim-vroom"]
+ path = bundle/vim-vroom
+ url = git://github.com/skalnik/vim-vroom.git
Submodule vim-vroom added at 70a714
View
@@ -1,29 +0,0 @@
-fu! SpinUp()
- :silent execute "!bundle exec spin push % &>/dev/null &" | redraw!
-endfunction
-
-fu! s:SpinUpTest(testName)
- execute "!bundle exec spin push " . bufname("%") . ":" . a:testName . " &>/dev/null &" | redraw!
-endfunction
-
-fu! s:DetectTestName()
- let ln = a:firstline
- while ln > 0
- let line = getline(ln)
- if line =~ "test.*do"
- let testName = matchstr(line, "['\"].*['\"]")
- let testName = strpart(testName, 1, strlen(testName) - 2)
- return "test_" . substitute(testName, " ", "_", "g")
- endif
- let ln -= 1
- endwhile
- return 0
-endfunction
-
-fu! SpinUpSingle()
- let testName = s:DetectTestName()
- call s:SpinUpTest(testName)
-endfunction
-
-map <leader>r :call SpinUp()<cr>
-" map <leader>rf :call SpinUpSingle()<cr>

0 comments on commit 595b065

Please sign in to comment.