[nvim] Add yank highlight and substitution preview
Added quick highlighting of whatever text is added to a yank buffer. Added live preview of `:%s/sub/command/` in current buffer and preview window.
This commit is contained in:
parent
4f4e67ff1c
commit
3884d28dbd
3 changed files with 10 additions and 0 deletions
5
nvim/.config/nvim/plugin/personal/highlightyank.vim
Normal file
5
nvim/.config/nvim/plugin/personal/highlightyank.vim
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
" will highlight any text which has been yanked
|
||||
augroup LuaHighlight
|
||||
autocmd!
|
||||
autocmd TextYankPost * silent! lua require'vim.highlight'.on_yank()
|
||||
augroup END
|
||||
Loading…
Add table
Add a link
Reference in a new issue