" Some special settings for searching, if available if has('extra_search') " Searching as I enter my pattern, \i toggles this set incsearch nnoremap \ i \ :set incsearch! incsearch? " Highlight search results, \h toggles this set hlsearch nnoremap \ h \ :set hlsearch! hlsearch? " Pressing ^L will clear highlighting until the next search-related " operation; quite good because the highlighting gets distracting after " you've found what you wanted nnoremap \ \ :nohlsearch endif