From c5601a494c1ff13aa1a96122cb2014e5824533ab Mon Sep 17 00:00:00 2001 From: Dustin Swan Date: Wed, 16 Jan 2013 17:50:08 -0800 Subject: [PATCH] Adding hdevtools to vimrc and some keybindings to show type and info --- vimrc | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/vimrc b/vimrc index 6113a9b..856bede 100644 --- a/vimrc +++ b/vimrc @@ -44,8 +44,8 @@ Bundle 'kshenoy/vim-signature' "Bundle 'SirVer/ultisnips' Bundle 'fmoralesc/vim-pad' Bundle 'lukerandall/haskellmode-vim' -Bundle 'Shougo/neocomplcache' -Bundle 'ujihisa/neco-ghc' +Bundle 'bitc/vim-hdevtools' +" Bundle 'Shougo/neocomplcache' filetype plugin indent on " last Vundle requirement @@ -227,8 +227,9 @@ let g:ghc = "/usr/bin/ghc" let g:haddock_browser = "open" let g:haddock_browser_callformat = "%s %s" -" NeoComplCache -" let g:neocomplcache_enable_at_startup = 1 +" automatically open and close the popup menu / preview window +au CursorMovedI,InsertLeave * if pumvisible() == 0|silent! pclose|endif +set completeopt=menu,preview,longest " Undotree nnoremap u :UndotreeToggle @@ -238,3 +239,11 @@ map j_ map k_ map l_ map h_ + +" NeoComplCache +" let g:neocomplcache_enable_at_startup = 1 + +" hdevtools +nnoremap ht :HdevtoolsType +nnoremap hc :HdevtoolsClear +nnoremap hi :HdevtoolsInfo