Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 525 Bytes

vim-nvim-motion-yank-from-cursor-to-end-of-line.md

File metadata and controls

19 lines (12 loc) · 525 Bytes

October 30, 2023 TIL - Vim/Nvim Motion - Yank From Cursor to End of Line

Yank from current cursor position to end of line using Y Vim/Nvim motions.

    Old text                    Command         New text
--------------------------------------------------------------------------------
    surr*ound_words             Y               *yanked* ound_words

Use Cases

  • Yank text from current cursor position to end of line using Vim/Nvim motions
  • Use Y instead of y$

References

  • See :help Y