diff options
author | Matthieu Coudron <teto@users.noreply.github.com> | 2021-08-16 06:24:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-15 21:24:59 -0700 |
commit | 5a111c1b02bbfbc2b42df11d7205153be0893dff (patch) | |
tree | 4b8023a1bf4d95a59262ddd867a02573a20af3f6 /src/nvim/normal.c | |
parent | aa07d06bf44b3931c04bb1db5043c0fbe30548f4 (diff) | |
download | rneovim-5a111c1b02bbfbc2b42df11d7205153be0893dff.tar.gz rneovim-5a111c1b02bbfbc2b42df11d7205153be0893dff.tar.bz2 rneovim-5a111c1b02bbfbc2b42df11d7205153be0893dff.zip |
feat(defaults): map Y to y$ #13268
rationale:
- consistent with D and Y
- long recommended by Vim's own ":help Y"
close #13268
close #416
ref #6289
Diffstat (limited to 'src/nvim/normal.c')
-rw-r--r-- | src/nvim/normal.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nvim/normal.c b/src/nvim/normal.c index 2a530db934..a92376a3ec 100644 --- a/src/nvim/normal.c +++ b/src/nvim/normal.c @@ -397,6 +397,11 @@ void init_normal_cmds(void) nv_max_linear = i - 1; } +void init_default_mappings(void) +{ + add_map((char_u *)"Y y$", NORMAL | VISUAL); +} + /* * Search for a command in the commands table. * Returns -1 for invalid command. |