aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorGregory Anders <greg@gpanders.com>2021-08-16 09:31:14 -0600
committerGitHub <noreply@github.com>2021-08-16 08:31:14 -0700
commit0aa8128aaa9e6f714372f7ea7299f4115de0a962 (patch)
tree4699f46b0c156f06b8d1b8f2bf9d748cc6c40735 /runtime
parent7146103be2bc576c273fd9df2f922b6b5ba4c972 (diff)
downloadrneovim-0aa8128aaa9e6f714372f7ea7299f4115de0a962.tar.gz
rneovim-0aa8128aaa9e6f714372f7ea7299f4115de0a962.tar.bz2
rneovim-0aa8128aaa9e6f714372f7ea7299f4115de0a962.zip
feat(defaults): map CTRL-L to search highlights, update diffs #15385
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/various.txt4
-rw-r--r--runtime/doc/vim_diff.txt4
2 files changed, 7 insertions, 1 deletions
diff --git a/runtime/doc/various.txt b/runtime/doc/various.txt
index ec91b6e29a..162909ce45 100644
--- a/runtime/doc/various.txt
+++ b/runtime/doc/various.txt
@@ -14,6 +14,10 @@ Various commands *various*
*CTRL-L*
CTRL-L Clears and redraws the screen. The redraw may happen
later, after processing typeahead.
+ *CTRL-L-default*
+ By default, also clears search highlighting
+ |:nohlsearch| and updates diffs |:diffupdate|.
+ |default-mappings|
*:mod* *:mode*
:mod[e] Clears and redraws the screen.
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index 1b669a4873..d96eb84a79 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -74,7 +74,9 @@ the differences.
Default Mappings: *default-mappings*
- nnoremap Y y$
+
+nnoremap Y y$
+nnoremap <C-L> <Cmd>nohlsearch<Bar>diffupdate<CR><C-L>
==============================================================================
3. New Features *nvim-features*