diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-28 21:33:46 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2017-10-28 21:33:46 +1300 |
commit | d83db65420a1963fb83c13cbde50f0d0d1cdee92 (patch) | |
tree | e76f798f8380e2e90d1fa0fa215dc035cf3d3a2d /vim/vimrc | |
parent | Move swapfile .vimrc config into subfile (diff) | |
download | dotfiles-d83db65420a1963fb83c13cbde50f0d0d1cdee92.tar.gz dotfiles-d83db65420a1963fb83c13cbde50f0d0d1cdee92.zip |
Move search .vimrc config into subfile
Diffstat (limited to 'vim/vimrc')
-rw-r--r-- | vim/vimrc | 27 |
1 files changed, 0 insertions, 27 deletions
@@ -209,33 +209,6 @@ set autowrite set scrolloff=0 set sidescrolloff=16 -" Some special settings for searching, if available -if has('extra_search') - - " Searching as I enter my pattern, \i toggles this - set incsearch - 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 - nnoremap <silent> <C-l> :nohlsearch<CR><C-l> - - " Clear search highlighting as soon as I enter insert mode, and restore it - " once I leave it - if has('autocmd') - augroup highlight - autocmd! - silent! autocmd InsertEnter * set nohlsearch - silent! autocmd InsertLeave * set hlsearch - augroup END - endif -endif - " Configure spell checking features, if available if has('spell') |