Skip to content

Instantly share code, notes, and snippets.

@jferris
Created September 22, 2014 20:51
Show Gist options
  • Select an option

  • Save jferris/cbca83e7fe9196490469 to your computer and use it in GitHub Desktop.

Select an option

Save jferris/cbca83e7fe9196490469 to your computer and use it in GitHub Desktop.
Hoogle for keyword under cursor
function! Hoogle(function)
call system("chromium \"http://www.haskell.org/hoogle/?hoogle=" . a:function . "\"")
endfunction
" Search for the current word using Hoogle
nmap <Leader>H :call Hoogle("<C-R><C-W>")<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment