commit 76bcd29db538a4258299e2144706d411dcd93052
parent fb7df3dbda598e5ca3eb0ab6e567146e7d1fed7e
Author: Ed van Bruggen <edvb54@gmail.com>
Date: Thu, 19 May 2016 21:44:49 -0700
Vim: Press ESC in normal mode also to clear search
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/vimrc b/vimrc
@@ -272,6 +272,9 @@ inoremap jj <Esc>
" make ctrl+c completely like ESC
inoremap <C-c> <Esc><Esc>
+" extend ESC to also clear search highlight
+nnoremap <ESC> :noh<CR><ESC>
+
" ZZ is save and quit and ZQ is just quit, so...
" make ZS to save without closing
nnoremap ZS :w<CR>