add some search related settings
This commit is contained in:
parent
53f6cef498
commit
ec86f9452b
1 changed files with 7 additions and 0 deletions
7
.vimrc
7
.vimrc
|
@ -39,6 +39,13 @@ fun! <SID>StripTrailingWhitespaces()
|
|||
endfun
|
||||
autocmd BufWritePre * :call <SID>StripTrailingWhitespaces()
|
||||
|
||||
" Search related settings
|
||||
set incsearch
|
||||
set hlsearch
|
||||
|
||||
" Map Ctrl+l to clear highlighted searches
|
||||
nnoremap <silent> <C-l> :<C-u>nohlsearch<CR><C-l>
|
||||
|
||||
" Highlight characters behind the 80 chars margin
|
||||
:au BufWinEnter * let w:m2=matchadd('ColumnMargin', '\%>80v.\+', -1)
|
||||
|
||||
|
|
Loading…
Reference in a new issue