From c880a370d4b3eaf7f48627db7874de3d4913b2b9 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 22 Apr 2020 09:09:06 +0530 Subject: [PATCH] nvim: Drop unneeded plugins & use incsearch for automatic nohlsearch Signed-off-by: Sanchayan Maity --- nvim/.config/nvim/init.vim | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim index 5ab0a36..1496a03 100644 --- a/nvim/.config/nvim/init.vim +++ b/nvim/.config/nvim/init.vim @@ -101,13 +101,9 @@ Plug 'Yggdroot/indentLine' Plug 'voldikss/vim-floaterm' " Smooth scrolling Plug 'psliwka/vim-smoothie' -" Auto correction -Plug 'sedm0784/vim-you-autocorrect', { 'for': [ 'text', 'markdown' ] } -Plug 'rhysd/vim-grammarous', { 'for': [ 'text', 'markdown' ] } " Handle line & column jump specifications as found in stack traces Plug 'wsdjeg/vim-fetch' " Miscellaneous -Plug 'junegunn/vim-slash' Plug 'andymass/vim-matchup' Plug 'liuchengxu/vim-which-key' Plug 'farmergreg/vim-lastplace' @@ -148,6 +144,7 @@ set nofoldenable " Open folds by default set undofile " Enable undo persistence across sessions set hidden set noautochdir +set hlsearch " Wild menu set wildmenu @@ -362,6 +359,13 @@ map h (easymotion-linebackward) noremap / incsearch#go(incsearch_config()) noremap ? incsearch#go(incsearch_config({'command': '?'})) noremap g/ incsearch#go(incsearch_config({'is_stay': 1})) +" Incremental search +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#) " Tag helpers nnoremap :vsp :exec("tag ".expand("")) @@ -505,6 +509,9 @@ let g:grepper.switch = 0 let g:grepper.append = 0 let g:grepper.prompt = 0 +" Easymotion incsearch +let g:incsearch#auto_nohlsearch = 1 + " Deoplete let g:deoplete#enable_at_startup = 0 let g:deoplete#sources#rust#disable_keymap = 1