Skip to content

Instantly share code, notes, and snippets.

@dradtke
Created January 8, 2013 23:53
Show Gist options
  • Select an option

  • Save dradtke/4489205 to your computer and use it in GitHub Desktop.

Select an option

Save dradtke/4489205 to your computer and use it in GitHub Desktop.
Search Hoogle from Vim.
function! SearchHoogle(q)
call system('firefox "http://www.haskell.org/hoogle/?hoogle='.a:q.'" &')
endfunction
command! -nargs=1 Hoogle call SearchHoogle('<args>')
if has("autocmd")
au filetype haskell nmap K :call SearchHoogle(expand('<cword>'))<cr>
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment