Permalink
Browse files

Added plugin file

  • Loading branch information...
1 parent 9b2c4e8 commit f4bc8782828389d745ff457aeba06a9e98aa51f8 @edtsech committed Mar 27, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 plugin/railsapi.vim
View
@@ -0,0 +1,7 @@
+let g:browser = 'open '
+
+function! OpenRailsApi
+ exec '!'.g:browser.' "http://railsapi.com/doc/rails-v3.0.4/?q='.expand('<cword>').'" &'
+endfunction
+
+noremap <Leader>ra :call OpenUrl()<CR>

0 comments on commit f4bc878

Please sign in to comment.