From 7dae6ee474e233985a1bc78897fe0e186d21b97b Mon Sep 17 00:00:00 2001 From: Felix Van der Jeugt Date: Fri, 21 Oct 2016 13:07:39 +0200 Subject: [PATCH] replace easymotion search with incsearch --- config/nvim/init.vim | 23 +++++++++++++++-------- 1 file changed, 15 insertions(+), 8 deletions(-) diff --git a/config/nvim/init.vim b/config/nvim/init.vim index 4b25bc6..1194512 100644 --- a/config/nvim/init.vim +++ b/config/nvim/init.vim @@ -46,6 +46,7 @@ set foldlevelstart=3 tnoremap " Quickfixing +nnoremap d :split nnoremap co :copen nnoremap cn :cnext nnoremap cp :cprevious @@ -73,8 +74,8 @@ Plug 'mhinz/vim-grepper', { 'on': 'Grepper' } Plug 'junegunn/vim-peekaboo' Plug 'ludovicchabant/vim-gutentags' Plug 'majutsushi/tagbar' -" Plug 'neovimhaskell/haskell-vim' +Plug 'haya14busa/incsearch.vim' call plug#end() " Plugin configuration @@ -98,17 +99,11 @@ nmap a (EasyAlign) let g:EasyMotion_do_mapping=0 let g:EasyMotion_startofline=0 -map w (easymotion-bd-w) map f (easymotion-s) map j (easymotion-j) map k (easymotion-k) -nmap L (easymotion-overwin-line) +map w (easymotion-bd-w) nmap w (easymotion-overwin-w) -map / (easymotion-sn) -omap / (easymotion-tn) -map n (easymotion-next) -map N (easymotion-prev) -set nohlsearch let g:ycm_global_ycm_extra_conf='~/.config/nvim/ycm_extra_conf.py' let g:ycm_rust_src_path='/data/programming/rustc-1.7.0/src' @@ -161,6 +156,18 @@ let g:haskell_enable_arrowsyntax=1 let g:haskell_enable_pattern_synonyms=1 let g:haskell_enable_typeroles=1 let g:haskell_enable_static_pointers=1 + +map / (incsearch-forward) +map ? (incsearch-backward) +map g/ (incsearch-stay) +set hlsearch +let g:incsearch#auto_nohlsearch = 1 +map n (incsearch-nohl-n) +map N (incsearch-nohl-N) +map * (incsearch-nohl-*) +map # (incsearch-nohl-#) +map g* (incsearch-nohl-g*) +map g# (incsearch-nohl-g#) " Plugged }}} " vim: foldmethod=marker