aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/mapping.c4
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