Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added plugin file

  • Loading branch information...
commit f4bc8782828389d745ff457aeba06a9e98aa51f8 1 parent 9b2c4e8
@edtsech authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 plugin/railsapi.vim
View
7 plugin/railsapi.vim
@@ -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>
Please sign in to comment.
Something went wrong with that request. Please try again.