Skip to content

Commit

Permalink
move away from apidock
Browse files Browse the repository at this point in the history
  • Loading branch information
coffeejunk committed Apr 30, 2012
1 parent ee4b1b1 commit 9c4643d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion autoload/rubydoc.vim
Expand Up @@ -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.