commit 57c63e2df31761ea8267998cf8efd51e86fc2979
parent e0e308df5cc1ede509dd24927b6276c72b24b6d1
Author: Bharatvaj <bharatvaj@yahoo.com>
Date: Tue, 14 Dec 2021 00:19:09 +0530
Merge pull request #24 from bharatvaj/macos
Vim search highlight improvement
Diffstat:
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/.config/vim/keybindings/keybindings.vim b/.config/vim/keybindings/keybindings.vim
@@ -18,6 +18,8 @@ nnoremap <leader>wq :wq<cr>
nnoremap <leader>ww :w<cr>
nnoremap <leader>q :q<cr>
+nnoremap <CR> :noh<CR><CR>:<backspace>
+
" Plugin keybindings
source $XDG_CONFIG_HOME/vim/keybindings/vimspector.vim
source $XDG_CONFIG_HOME/vim/keybindings/markdown.vim
diff --git a/.config/vim/vimrc b/.config/vim/vimrc
@@ -52,12 +52,6 @@ set shortmess=Iat
" Search
set hlsearch
set incsearch
-" Disable highlight after a search
-augroup vimrc-incsearch-highlight
- autocmd!
- autocmd CmdlineEnter /,\? :set hlsearch
- autocmd CmdlineLeave /,\? :set nohlsearch
-augroup END
" Pro tab
filetype plugin indent on