From 5d5111a9ea6a9b4cc80d12f624724ff5f16eea15 Mon Sep 17 00:00:00 2001 From: Miguel Date: Fri, 7 Jun 2019 00:59:56 +0200 Subject: better vimrc haskelling and other stuff --- vim/vimrc | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index 022b39a..c7d0e6d 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -101,6 +101,8 @@ Plugin 'honza/vim-snippets' Plugin 'ndmitchell/ghcid', { 'rtp': 'plugins/nvim' } " added at work Plugin 'neomake/neomake' Plugin 'parsonsmatt/intero-neovim' +Plugin 'mileszs/ack.vim' +Plugin 'neovimhaskell/haskell-vim' call vundle#end() filetype plugin indent on @@ -306,6 +308,7 @@ nnoremap W :match nnoremap cn :cnext nnoremap cp :cprevious nnoremap cc :cc +nnoremap cq :copen " buffer navigaion nnoremap bn :MBEbn @@ -316,8 +319,10 @@ nnoremap bd :MBEbd nnoremap ln :NERDTreeToggle nnoremap lt :TagbarToggle nnoremap lm :MBEToggle -nnoremap lq :copen "nnoremap lg :ConqueGdb + +" silver search +noremap a :Ack! " }}} " {{{ FILETYPES @@ -472,3 +477,21 @@ let g:intero_load_targets= ["twg"] let g:ghcid_keep_open = 1 " show trailing whitespace per default: match ErrorMsg /\v +$/ + +" let g:ackprg = 'ag --nogroup --nocolor --column' +let g:ackprg = 'ag --vimgrep' +let g:ackhighlight = 1 +" let g:ack_autoclose = 1 +" let g:ack_autofold_results = 1 +cnoreabbrev Ack Ack! + +let g:haskell_enable_quantification = 1 " to enable highlighting of `forall` +let g:haskell_enable_recursivedo = 1 " to enable highlighting of `mdo` and `rec` +let g:haskell_enable_arrowsyntax = 1 " to enable highlighting of `proc` +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:haskell_classic_highlighting = 1 + + -- cgit v1.2.3