summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorself <george@gabbott.dev>2022-11-20 12:59:50 +0000
committerself <george@gabbott.dev>2022-11-20 12:59:50 +0000
commit247a3a665a3cf284b53d18d446d909d5fdd07db4 (patch)
tree03f612cb79338f4fe3fe4d4ca8ad38ec938b8eb7
parent2cc2407123b0e5fa50da767325adc11f0151ac2f (diff)
highlight yanked text for a bit
-rwxr-xr-xinit.vim5
1 files changed, 4 insertions, 1 deletions
diff --git a/init.vim b/init.vim
index a2507f6..4a2fd62 100755
--- a/init.vim
+++ b/init.vim
@@ -30,6 +30,9 @@ command Wq wq
command Q q
command WQ wq
+" Highlight yanked text
+autocmd TextYankPost * silent! lua vim.highlight.on_yank { higroup='IncSearch', timeout=4000 }
+
" Telescope shortcuts
noremap <leader>cs :Telescope colorscheme<CR>
noremap <leader>gr :Telescope grep_string<CR>
@@ -139,7 +142,7 @@ nmap <F8> :TagbarToggle<CR>
" NerdTree
Plug 'preservim/nerdtree'
Plug 'Xuyuanp/nerdtree-git-plugin'
-Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
+" Plug 'tiagofumo/vim-nerdtree-syntax-highlight'
Plug 'ryanoasis/vim-devicons' " must be last?
nmap <F7> :NERDTreeToggle<CR>