Created
January 8, 2013 23:53
-
-
Save dradtke/4489205 to your computer and use it in GitHub Desktop.
Search Hoogle from Vim.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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