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 /runtime | |
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 'runtime')
-rw-r--r-- | runtime/doc/change.txt | 6 | ||||
-rw-r--r-- | runtime/doc/vim_diff.txt | 5 |
2 files changed, 8 insertions, 3 deletions
diff --git a/runtime/doc/change.txt b/runtime/doc/change.txt index 6be87af8a9..aed3acab67 100644 --- a/runtime/doc/change.txt +++ b/runtime/doc/change.txt @@ -986,9 +986,9 @@ inside of strings can change! Also see 'softtabstop' option. > *Y* ["x]Y yank [count] lines [into register x] (synonym for - yy, |linewise|). If you like "Y" to work from the - cursor to the end of line (which is more logical, - but not Vi-compatible) use ":map Y y$". + yy, |linewise|). + *Y-default* + Mapped to "y$" by default. |default-mappings| *zy* ["x]zy{motion} Yank {motion} text [into register x]. Only differs diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index 2c53620049..dcd08736e5 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -72,6 +72,11 @@ the differences. - |g:vimsyn_embed| defaults to "l" to enable Lua highlighting + +Default Mappings: *default-mappings* + nnoremap Y y$ + xnoremap Y y$ + ============================================================================== 3. New Features *nvim-features* |