From c305591c2541acd706b7dc0d50847d52096a4e81 Mon Sep 17 00:00:00 2001 From: miguelvoid <51422047+miguelvoid@users.noreply.github.com> Date: Wed, 12 Jun 2019 17:21:50 +0200 Subject: Update vimrc --- vim/vimrc | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/vim/vimrc b/vim/vimrc index d8ec2f8..f9079d7 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -309,6 +309,7 @@ nnoremap cn :cnext nnoremap cp :cprevious nnoremap cc :cc nnoremap cq :copen +nnoremap cQ :cclose " buffer navigaion nnoremap bn :MBEbn @@ -323,6 +324,10 @@ nnoremap lm :MBEToggle " silver search noremap a :Ack! + +" stylish-haskell +noremap sh :!stylish-haskell + " }}} " {{{ FILETYPES @@ -353,6 +358,7 @@ augroup END " {{{ haskell augroup filetype_haskell autocmd! + autocmd FileType haskell setlocal formatprg=stylish-haskell " autocmd FileType haskell setlocal foldmethod=marker " autocmd Filetype haskell map :w:term cabal -- exec runghc % " autocmd Filetype haskell map :w:term make @@ -374,6 +380,7 @@ augroup interoMaps " Background process and window management au FileType haskell nnoremap is :InteroStart au FileType haskell nnoremap ik :InteroKill + au FileType haskell nnoremap ir :InteroReload " Open intero/GHCi split horizontally au FileType haskell nnoremap io :InteroOpen @@ -474,7 +481,7 @@ let g:miniBufExplVSplit = 20 let g:miniBufExplSplitToEdge = 0 let g:miniBufExplMaxSize = 25 -let g:intero_load_targets= ["twg"] +let g:intero_load_targets= ["twg:lib","twg:exe:twg"] let g:ghcid_keep_open = 1 @@ -495,5 +502,5 @@ let g:haskell_enable_pattern_synonyms = 1 " to enable highlighting of `pattern` let g:haskell_enable_typeroles = 1 " to enable highlighting of type roles let g:haskell_enable_static_pointers = 1 " to enable highlighting of `static` let g:haskell_backpack = 1 " to enable highlighting of backpack keywords +let g:intero_prompt_regex= ' >' " let g:haskell_classic_highlighting = 1 - -- cgit v1.2.3