Skip to content

ubaldot/vim-highlight-yanked

Folders and files

NameName
Last commit message
Last commit date

Latest commit

74630fd · Feb 17, 2025

History

26 Commits
Sep 12, 2024
Feb 17, 2025
May 29, 2023
Jun 27, 2024
Jun 4, 2024

Repository files navigation

vim-highlight-yanked

Highlight yanked text for Vim9.

Configuration

# Default values
g:hlyanked_hlgroup = 'Visual'
g:hlyanked_timeout = 400 # [ms]

When you yank some new text, the newly yanked text ends up in the 1 register and the content of the following registers is shifted by one (i.e. the content of register 2 is moved into register 3, the content of register 3 is moved into register 4 and so on). In this way you never lose previously yanked text.

To disable such a behavior set:

g:hlyanked_save_yanks = false

License

BSD-3 Clause.