]> git.rmz.io Git - dotfiles.git/blobdiff - vimrc
displaying number of matches + remap nohl
[dotfiles.git] / vimrc
diff --git a/vimrc b/vimrc
index 04d2a4be99d2aaa7ff94948e7b191a8f9c7893ad..24f13b305d1f99d8e080fd937ebfd5919da758c1 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -11,7 +11,10 @@ set incsearch
 set ignorecase
 set smartcase
 set hlsearch
-nmap <Leader>q :nohl<CR>
+" use leader-n to unhighlight search
+nmap <silent> <Leader>n :silent nohl<CR>
+" use leader-# to display the number of matches for the last search
+nmap <Leader># :%s:<C-R>/::gn<CR>
 
 " NERDTree {{{1
 " open/close NERDTree with \e