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/doc | |
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/doc')
-rw-r--r-- | runtime/doc/pattern.txt | 8 | ||||
-rw-r--r-- | runtime/doc/tags | 2 | ||||
-rw-r--r-- | runtime/doc/usr_05.txt | 19 |
3 files changed, 25 insertions, 4 deletions
diff --git a/runtime/doc/pattern.txt b/runtime/doc/pattern.txt index 183806a968..4351944df9 100644 --- a/runtime/doc/pattern.txt +++ b/runtime/doc/pattern.txt @@ -1,4 +1,4 @@ -*pattern.txt* For Vim version 9.1. Last change: 2024 Jun 03 +*pattern.txt* For Vim version 9.1. Last change: 2024 Jun 18 VIM REFERENCE MANUAL by Bram Moolenaar @@ -151,13 +151,17 @@ CTRL-C Interrupt current (search) command. Use CTRL-Break on executing autocommands |autocmd-searchpat|. Same thing for when invoking a user function. + While typing the search pattern the current match will be shown if the 'incsearch' option is on. Remember that you still have to finish the search command with <CR> to actually position the cursor at the displayed match. Or use <Esc> to abandon the search. + *nohlsearch-auto* All matches for the last used search pattern will be highlighted if you set -the 'hlsearch' option. This can be suspended with the |:nohlsearch| command. +the 'hlsearch' option. This can be suspended with the |:nohlsearch| command +or auto suspended with nohlsearch plugin. See |nohlsearch-install|. + When 'shortmess' does not include the "S" flag, Vim will automatically show an index, on which the cursor is. This can look like this: > diff --git a/runtime/doc/tags b/runtime/doc/tags index 794fa0c71b..56385a8442 100644 --- a/runtime/doc/tags +++ b/runtime/doc/tags @@ -9178,6 +9178,8 @@ no_buffers_menu gui.txt /*no_buffers_menu* no_mail_maps filetype.txt /*no_mail_maps* no_plugin_maps filetype.txt /*no_plugin_maps* nocombine syntax.txt /*nocombine* +nohlsearch-auto pattern.txt /*nohlsearch-auto* +nohlsearch-install usr_05.txt /*nohlsearch-install* non-greedy pattern.txt /*non-greedy* non-zero-arg eval.txt /*non-zero-arg* none-function_argument userfunc.txt /*none-function_argument* diff --git a/runtime/doc/usr_05.txt b/runtime/doc/usr_05.txt index a9e8fb9c31..5065e4583c 100644 --- a/runtime/doc/usr_05.txt +++ b/runtime/doc/usr_05.txt @@ -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|. ============================================================================== |