From b09912c42c42ab2ad0550731839357cad4b27580 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Mon, 11 Oct 2021 13:43:11 +0200 Subject: [PATCH] Use esc to stop vim search highlight --- home/.config/nvim/rc/mappings.vim | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/home/.config/nvim/rc/mappings.vim b/home/.config/nvim/rc/mappings.vim index 6ecbf83..4b3bf35 100644 --- a/home/.config/nvim/rc/mappings.vim +++ b/home/.config/nvim/rc/mappings.vim @@ -4,8 +4,8 @@ nnoremap nnoremap nnoremap -" Stop search highlight on Ctrl+l (until next search) -map :noh +" Stop search highlight with Esc in normal mode (until next search) +nnoremap :noh " System clipboard interactions map "+y @@ -63,3 +63,10 @@ nnoremap :w \| !comp % " Shell check nnoremap p :!shellcheck % +" Redefine the incredibely annoying mappings that trigger +" dynamic SQL completion with dbext and keeps on freezing +" vim whenever pressed with a message saying that +" dbext plugin isn't installed... +" See :h ft-sql.txt +let g:omni_sql_no_default_maps = 1 +