From: Samir Benmendil Date: Wed, 16 Oct 2013 07:46:56 +0000 (+0200) Subject: displaying number of matches + remap nohl X-Git-Url: https://git.rmz.io/dotfiles.git/commitdiff_plain/7ffe019cbeb712ca6af760b7db6938416b3c5d7c displaying number of matches + remap nohl --- diff --git a/vimrc b/vimrc index 04d2a4b..24f13b3 100644 --- a/vimrc +++ b/vimrc @@ -11,7 +11,10 @@ set incsearch set ignorecase set smartcase set hlsearch -nmap q :nohl +" use leader-n to unhighlight search +nmap n :silent nohl +" use leader-# to display the number of matches for the last search +nmap # :%s:/::gn " NERDTree {{{1 " open/close NERDTree with \e