blob: 8d9930742c9eb80c75e1724dccad858dee90826b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
" nohlsearch.vim: Auto turn off hlsearch
" Last Change: 2024-06-19
" Maintainer: Maxim Kim <habamax@gmail.com>
"
" turn off hlsearch after:
" - doing nothing for 'updatetime'
" - getting into insert mode
augroup nohlsearch
au!
noremap <Plug>(nohlsearch) <cmd>nohlsearch<cr>
noremap! <Plug>(nohlsearch) <cmd>nohlsearch<cr>
au CursorHold * call feedkeys("\<Plug>(nohlsearch)", 'm')
au InsertEnter * call feedkeys("\<Plug>(nohlsearch)", 'm')
augroup END
|