aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorGregory Anders <8965202+gpanders@users.noreply.github.com>2022-07-15 07:23:29 -0600
committerGitHub <noreply@github.com>2022-07-15 06:23:29 -0700
commit1c9f487f0edc3e6a10a53dc83a3d779980dc3a26 (patch)
tree0f62bf71680a3a30587fd8e2a75ff460ea695c7e /runtime
parentc0ae3df0528263d677fff3e1150a7b65589fb88d (diff)
downloadrneovim-1c9f487f0edc3e6a10a53dc83a3d779980dc3a26.tar.gz
rneovim-1c9f487f0edc3e6a10a53dc83a3d779980dc3a26.tar.bz2
rneovim-1c9f487f0edc3e6a10a53dc83a3d779980dc3a26.zip
feat(defaults): nnoremap & :&&<CR> #19365
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/change.txt3
-rw-r--r--runtime/doc/vim_diff.txt1
2 files changed, 4 insertions, 0 deletions
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt
index 571fbaec95..b905f53db7 100644
--- a/runtime/doc/change.txt
+++ b/runtime/doc/change.txt
@@ -633,6 +633,9 @@ Directory for temporary files is created in the first possible directory of:
actually work differently. You can use `:&&` to keep
the flags.
+ *&-default*
+ Mapped to ":&&<CR>" by default. |default-mappings|
+
*g&*
g& Synonym for `:%s//~/&` (repeat last substitute with
last search pattern on all lines with the same flags).
diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt
index d692fcfc37..bacf160206 100644
--- a/runtime/doc/vim_diff.txt
+++ b/runtime/doc/vim_diff.txt
@@ -89,6 +89,7 @@ of these in your config by simply removing the mapping, e.g. ":unmap Y".
inoremap <C-W> <C-G>u<C-W>
xnoremap * y/\V<C-R>"<CR>
xnoremap # y?\V<C-R>"<CR>
+ nnoremap & :&&<CR>
<
Default Autocommands ~
*default-autocmds*