Skip to content
Snippets Groups Projects
Commit ec86f945 authored by hukl's avatar hukl
Browse files

add some search related settings

parent 53f6cef4
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment