From 1c9f487f0edc3e6a10a53dc83a3d779980dc3a26 Mon Sep 17 00:00:00 2001 From: Gregory Anders <8965202+gpanders@users.noreply.github.com> Date: Fri, 15 Jul 2022 07:23:29 -0600 Subject: feat(defaults): nnoremap & :&& #19365 --- src/nvim/mapping.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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("", "u", MODE_INSERT, false); add_map("*", "y/\\\\V\"", MODE_VISUAL, false); add_map("#", "y?\\\\V\"", MODE_VISUAL, false); + + // Use : instead of so that ranges are supported (e.g. 3& repeats the substitution on the + // next 3 lines) + add_map("&", ":&&", MODE_NORMAL, false); } /// Add a mapping. Unlike @ref do_map this copies the string arguments, so -- cgit