Browse files

move away from apidock

  • Loading branch information...
1 parent ee4b1b1 commit 9c4643d0304d7216b983311e464026ef22cd167d @coffeejunk coffeejunk committed Apr 30, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 autoload/rubydoc.vim
View
9 autoload/rubydoc.vim
@@ -12,6 +12,13 @@ function! s:execute(cmd)
endfunction
function! rubydoc#search(type, keyword)
- let url = '"http://apidock.com/'.a:type.'/search/quick?query='.a:keyword.'"'
+ if a:type == 'ruby'
+ let url = 'http://rubydoc.info/search/stdlib/core?q='
+ elseif a:type == 'rspec'
+ let url = 'https://www.relishapp.com/rspec/search?query='
+ elseif a:type == 'rails'
+ let url = 'http://api.rubyonrails.org/?q='
+ endif
+ let url = '"'.url.a:keyword.'"'
call s:execute(g:ruby_doc_command.' '.url)
endfunction

0 comments on commit 9c4643d

Please sign in to comment.