Skip to content

Instantly share code, notes, and snippets.

@leira
Forked from KBalderson/1 README.md
Created November 8, 2015 05:30
Show Gist options
  • Select an option

  • Save leira/c11e75a5256c370e7446 to your computer and use it in GitHub Desktop.

Select an option

Save leira/c11e75a5256c370e7446 to your computer and use it in GitHub Desktop.
Use DevDocs.io as the documentation URL for investigate.vim

Steps

  1. Install investigate.vim
  2. Append the contents of the included .vimrc to your own .vimrc file
  3. Profit!
" Optionally, map <leader>d to investigate
" nnoremap <leader>d :call investigate#Investigate()<CR>
" for all of the DevDocs.io languages contained in investigate's s:defaultLocations
for lang in ["c", "clojure", "coffee", "cpp", "css", "django", "go", "haskell", "html", "javascript", "lua", "php", "python", "rails", "ruby"]
" use a url
execute("let g:investigate_use_url_for_".lang." = 1")
" use the DevDocs URL
execute("let g:investigate_url_for_".lang." = \"http://devdocs.io/#q=^s\"")
endfor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment