mirror of
https://github.com/neovim/neovim.git
synced 2026-08-26 09:01:57 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user