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>
This commit is contained in:
Maxim Kim
2024-06-18 19:32:39 +02:00
committed by Christian Brabandt
parent f189138b39
commit 26de90c631
6 changed files with 41 additions and 4 deletions

View File

@ -1,4 +1,4 @@
*usr_05.txt* For Vim version 9.1. Last change: 2024 May 17
*usr_05.txt* For Vim version 9.1. Last change: 2024 Jun 18
VIM USER MANUAL - by Bram Moolenaar
@ -440,7 +440,7 @@ After restarting your Vim, the plugin is active and you can read about it at: >
Adding comment package *comment-install*
Load the plugin with this command: >
packadd comment
packadd comment
<
This way you can use the plugin with the default key bindings `gc` and similar
for commenting (which is a well-established mapping in the Vim community).
@ -449,6 +449,21 @@ If you add this line to your vimrc file, then you need to restart Vim to have
the package loaded. Once the package is loaded, read about it at: >
:h comment.txt
Adding nohlsearch package *nohlsearch-install*
Load the plugin with this command: >
packadd nohlsearch
<
Automatically execute |:nohlsearch| after 'updatetime' or getting into |Insert| mode.
Thus assuming default updatetime, hlsearch would be suspended/turned off after
4 seconds of idle time.
To disable the effect of the plugin after is has been loaded: >
au! nohlsearch
<
More information about packages can be found here: |packages|.
==============================================================================