diff options
author | Maxim Kim <habamax@gmail.com> | 2024-06-18 19:32:39 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-06-18 19:32:39 +0200 |
commit | 26de90c6312cf16d7a4f2b6942befb4e1f14b960 (patch) | |
tree | da1faf825a68534b076d39ebb1f75bb507161fe0 /runtime/pack | |
parent | f189138b39a11ed5cf3adea6610469b478841aba (diff) |
runtime(nohlsearch): include the the simple nohlsearch package
fixes: #15039
closes: #15042
Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/pack')
-rw-r--r-- | runtime/pack/dist/opt/nohlsearch/plugin/nohlsearch.vim | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/runtime/pack/dist/opt/nohlsearch/plugin/nohlsearch.vim b/runtime/pack/dist/opt/nohlsearch/plugin/nohlsearch.vim new file mode 100644 index 0000000000..6cfe813cfa --- /dev/null +++ b/runtime/pack/dist/opt/nohlsearch/plugin/nohlsearch.vim @@ -0,0 +1,14 @@ +" nohlsearch.vim: Auto turn off hlsearch +" Last Change: 2024-06-18 +" 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! <expr> <Plug>(nohlsearch) execute('nohlsearch')[-1] + au CursorHold * call feedkeys("\<Plug>(nohlsearch)", 'm') + au InsertEnter * call feedkeys("\<Plug>(nohlsearch)", 'm') +augroup END |