Permalink
Browse files

make it work :)

  • Loading branch information...
1 parent 25691a9 commit 64056aefc637152057c54d4edd6bd20eb3988853 @thenoseman committed Mar 27, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 home/.vim/config/filetypes/ruby.vim
@@ -29,9 +29,9 @@ endfun
" Unshouldify a rspec spec
fun! Unshouldify()
- silent! s/\v(["'])should not/\1doesn't/gi
- silent! s/\v(["'])should have/\1has/gi
- silent! s/\vshould be/is/gi
- silent! s/\v(["'])should ([^ ]+)/\1\2s/gi
+ silent! %s/\v (["'])should not/ \1doesn't/gi
+ silent! %s/\v (["'])should have/ \1has/gi
+ silent! %s/\v should be/ is/gi
+ silent! %s/\v (["'])should ([^ ]+)/ \1\2s/gi
endfun
com! Unshouldify call Unshouldify()

0 comments on commit 64056ae

Please sign in to comment.