Skip to content

Commit

Permalink
Added Ruby snippets/shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Ferris committed Sep 22, 2009
1 parent 272dbcf commit 7da23f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion vim/after/ftplugin/ruby.vim
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ Snippet asnn assert_not_nil <{}>
Snippet asm assert_match <{expected}>, <{}>
Snippet asnm assert_match <{unexpected}>, <{}>
Snippet assel assert_select "<{}>"
Snippet asre assert_received(<{subject}>) {|p| p.<{}> }
Snippet asre assert_received(<{subject}>, :<{method}>) { |expect| expect.<{}> }

" render
Snippet renda render :action => '<{}>'
Expand All @@ -124,3 +124,6 @@ Snippet rendl render :layout => '<{}>'
Snippet Given Given /^<{step}>$/ do<{}><CR>end
Snippet When When /^<{step}>$/ do<{}><CR>end
Snippet Then Then /^<{step}>$/ do<{}><CR>end

" Search shortcuts
nmap d/ /^\s*\(def \\| def self\.\)

0 comments on commit 7da23f5

Please sign in to comment.