From 54726e8bb9f7d33ad0a603d82b408cb571c2a7a3 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 16 Aug 2021 00:13:25 -0700 Subject: [PATCH] fix(defaults): do not map Y in visual-mode #15387 Y in visual-mode is unrelated to the normal-mode behavior. reverts part of #13268 --- runtime/doc/vim_diff.txt | 1 - src/nvim/normal.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index dcd08736e5..1b669a4873 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -75,7 +75,6 @@ the differences. Default Mappings: *default-mappings* nnoremap Y y$ - xnoremap Y y$ ============================================================================== 3. New Features *nvim-features* diff --git a/src/nvim/normal.c b/src/nvim/normal.c index a92376a3ec..ae6f3792de 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -399,7 +399,7 @@ void init_normal_cmds(void) void init_default_mappings(void) { - add_map((char_u *)"Y y$", NORMAL | VISUAL); + add_map((char_u *)"Y y$", NORMAL); } /*