set history=100 " keep 100 lines of command line histories set ignorecase set smartcase set wrapscan " Searches wrap around the end of the file " While typing a search command, show where the pattern matches set incsearch set hlsearch " highlighting matches " turn off highlight by Esc x 2 nmap :nohlsearch augroup Search autocmd! autocmd QuickFixCmdPost *grep cwindow augroup END