Make the yanked region apparent!
there is no need for configuration, as the highlight event is automatically triggered by the TextYankPost event.
define a keymapping to <Plug>(highlightedyank). Checking the existence of TextYankPost event would be good.
if !exists('##TextYankPost')
nmap y <Plug>(highlightedyank)
xmap y <Plug>(highlightedyank)
omap y <Plug>(highlightedyank)
endifyou don't need this plugin. Check out here.
If you want to optimize highlight duration, use g:highlightedyank_highlight_duration or b:highlightedyank_highlight_duration. Assign a number of time in milliseconds.
let g:highlightedyank_highlight_duration = 1000A negative number makes the highlight persistent.
let g:highlightedyank_highlight_duration = -1When a new text is yanked or user starts editing, the old highlighting would be deleted.
If the highlight is not visible for some reason, you can redefine the HighlightedyankRegion highlight group like:
highlight HighlightedyankRegion cterm=reverse gui=reverseNote that the line should be located after :colorscheme command execution in your vimrc.
The highlight may not be needed or even annoying in visual mode.
let g:highlightedyank_highlight_in_visual = 0