diff options
author | Gregory Anders <8965202+gpanders@users.noreply.github.com> | 2022-07-15 07:23:29 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-15 06:23:29 -0700 |
commit | 1c9f487f0edc3e6a10a53dc83a3d779980dc3a26 (patch) | |
tree | 0f62bf71680a3a30587fd8e2a75ff460ea695c7e /src/nvim/mapping.c | |
parent | c0ae3df0528263d677fff3e1150a7b65589fb88d (diff) | |
download | rneovim-1c9f487f0edc3e6a10a53dc83a3d779980dc3a26.tar.gz rneovim-1c9f487f0edc3e6a10a53dc83a3d779980dc3a26.tar.bz2 rneovim-1c9f487f0edc3e6a10a53dc83a3d779980dc3a26.zip |
feat(defaults): nnoremap & :&&<CR> #19365
Diffstat (limited to 'src/nvim/mapping.c')
-rw-r--r-- | src/nvim/mapping.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nvim/mapping.c b/src/nvim/mapping.c index 9a4db520a6..7f4df66b4d 100644 --- a/src/nvim/mapping.c +++ b/src/nvim/mapping.c @@ -2125,6 +2125,10 @@ void init_default_mappings(void) add_map("<C-W>", "<C-G>u<C-W>", MODE_INSERT, false); add_map("*", "y/\\\\V<C-R>\"<CR>", MODE_VISUAL, false); add_map("#", "y?\\\\V<C-R>\"<CR>", MODE_VISUAL, false); + + // Use : instead of <Cmd> so that ranges are supported (e.g. 3& repeats the substitution on the + // next 3 lines) + add_map("&", ":&&<CR>", MODE_NORMAL, false); } /// Add a mapping. Unlike @ref do_map this copies the string arguments, so |