Closed jdhao closed 6 years ago
vim-highlightedyank uses IncSearch
highlight group by default. However it seems vim-sublime-monokai doesn't set the IncSearch
group. Probably that's why the reason. I think the easiest solution is to add the following lines into your vimrc:
augroup vimrc-highlightedyank
autocmd ColorScheme sublimemonokai highlight HighlightedyankRegion ctermbg=237 guibg=#41423a
augroup END
Please change augroup name and the colors as you prefer.
By the way, in my case vim-highlightedyank just worked with the line:
hi HighlightedyankRegion cterm=reverse gui=reverse
You may need to check whether the setting is really taking effect, for example, type :verbose hi HighlightedyankRegion<CR>
. I guess HighlightedyankRegion
may be cleared or overwritten somewhere. Locating the line after :colorscheme
setting in vimrc may help.
I found that for some colorscheme, highlighted yank does not work. If I use vim-sublime-monokai, the highlight does not work. If I change the colorscheme to gruvbox, now the highlight works.
Settings for highlightedyank is: