" My vimrc file.
"
-" Maintainer: Samir Benmendil <samir.benmendil[at]gmail[dot]com>
+" Author: Samir Benmendil <samir.benmendil[at]gmail[dot]com>
"
-if v:progname =~? "evim"
- finish
-endif
-
-" Use Vim settings, rather than Vi settings (much better!).
-" This must be first, because it changes other options as a side effect.
-set nocompatible
-
" pathogen.vim runtime path manipulation
silent! call pathogen#infect()
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