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
This commit is contained in:
Matthieu Coudron
2021-08-16 06:24:59 +02:00
committed by GitHub
parent aa07d06bf4
commit 5a111c1b02
8 changed files with 26 additions and 6 deletions

View File

@@ -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

View File

@@ -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*