aboutsummaryrefslogtreecommitdiff
path: root/vim
diff options
context:
space:
mode:
Diffstat (limited to 'vim')
-rw-r--r--vim/vimrc8
1 files changed, 4 insertions, 4 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 79e0577e..50d36e91 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -255,14 +255,14 @@ set sidescrolloff=16
" Some special settings for searching, if available
if has('extra_search')
- " Highlight search results, \h toggles this
- set hlsearch
-
" Searching as I enter my pattern, \i toggles this
set incsearch
- nnoremap <leader>h :set hlsearch!<CR>
nnoremap <leader>i :set incsearch!<CR>
+ " Highlight search results, \h toggles this
+ set hlsearch
+ nnoremap <leader>h :set hlsearch!<CR>
+
" 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