In Vim or Neovim, showing the yanked region in color gives use visual feedback on what we have copied. Here is how you can highlight yanked region in Vim or Neovim.
For Neovim and vim
There is a plugin vim-highlightedyank for this, which works both for vim and Neovim. Install it with your favorite plugin manager and it just works. You can also adjust highlight duration by adding the following config:
" set highlight to 1000 ms let g:highlightedyank_highlight_duration = 1000
Install the latest version of Neovim and add the following config to your
augroup highlight_yank autocmd! autocmd TextYankPost * silent! lua require'vim.highlight'.on_yank("IncSearch", 1000) augroup END
The first parameter is the highlight group to use, and the second parameter is the highlight duration time measured in milliseconds.
Enjoy it. One more plugin to remove :)
License CC BY-NC-ND 4.0