diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2021-08-16 00:13:25 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-16 00:13:25 -0700 |
commit | 54726e8bb9f7d33ad0a603d82b408cb571c2a7a3 (patch) | |
tree | 4992035884356de6f3d7181283abaa8977cda8c3 | |
parent | 5a111c1b02bbfbc2b42df11d7205153be0893dff (diff) | |
download | rneovim-54726e8bb9f7d33ad0a603d82b408cb571c2a7a3.tar.gz rneovim-54726e8bb9f7d33ad0a603d82b408cb571c2a7a3.tar.bz2 rneovim-54726e8bb9f7d33ad0a603d82b408cb571c2a7a3.zip |
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
-rw-r--r-- | runtime/doc/vim_diff.txt | 1 | ||||
-rw-r--r-- | src/nvim/normal.c | 2 |
2 files changed, 1 insertions, 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); } /* |