From 0166f0d7c229587546df349476014345eb0651e6 Mon Sep 17 00:00:00 2001 From: michael-angelozzi Date: Mon, 10 Aug 2020 12:35:44 +0200 Subject: [PATCH] Yank to work with unamed plus register/Neovim/anyregister Great plugin thank you. If one sets `clipboard=unnamedplus` with Neovim the yank function did not work. Further more it currently does not allow one to use any register. The changes address these issues. E.g. one one can yank all colours to register a with "ayy --- autoload/colortuner.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autoload/colortuner.vim b/autoload/colortuner.vim index fa60f07..d66d10c 100644 --- a/autoload/colortuner.vim +++ b/autoload/colortuner.vim @@ -92,7 +92,10 @@ function! colortuner#rotate_colorscheme(delta) endfunction function! colortuner#yank() - let @" = s:current_colors + " Will work with any register, and with unamedplus register + " e.g. "ayy + exe "let @".v:register."='".s:current_colors."'" + echom "Colors yanked to register ".v:register endfunction function! s:render()