aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-03-17 10:39:04 +1300
committerTom Ryder <tom@sanctum.geek.nz>2014-03-17 10:39:04 +1300
commit1dca40d0f4ca6b481694a3214f084e1d9fd76ab2 (patch)
treed5454beaddc0381cca379c6f343a066499483c80 /vim/vimrc
parentDon't force -H for sudo if -v (diff)
downloaddotfiles-1dca40d0f4ca6b481694a3214f084e1d9fd76ab2.tar.gz
dotfiles-1dca40d0f4ca6b481694a3214f084e1d9fd76ab2.zip
Group search settings lines properly
Diffstat (limited to 'vim/vimrc')
-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