From a1d9d9a8520c8dc0c3dc23129f31d1a2c59a15a1 Mon Sep 17 00:00:00 2001 From: jdhao Date: Tue, 13 Oct 2020 00:54:41 +0800 Subject: [PATCH] add nvim-miniyank --- plugins.vim | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/plugins.vim b/plugins.vim index 9a62fee..b1651f8 100644 --- a/plugins.vim +++ b/plugins.vim @@ -169,6 +169,8 @@ if g:is_win || g:is_mac Plug 'svermeulen/vim-yoink' endif +Plug 'bfredl/nvim-miniyank' + " Handy unix command inside Vim (Rename, Move etc.) Plug 'tpope/vim-eunuch' @@ -560,13 +562,13 @@ let g:auto_save_silent = 0 """"""""""""""""""""""""""""vim-yoink settings""""""""""""""""""""""""" if g:is_win || g:is_mac - " ctrl-n and ctrl-p will not work if you add the TextChanged event to - " vim-auto-save events + " ctrl-n and ctrl-p will not work if you add the TextChanged event to vim-auto-save events. " nmap (YoinkPostPasteSwapBack) " nmap (YoinkPostPasteSwapForward) - nmap p (YoinkPaste_p) - nmap P (YoinkPaste_P) + " The following p/P mappings are also needed for ctrl-n and ctrl-p to work + " nmap p (YoinkPaste_p) + " nmap P (YoinkPaste_P) " Cycle the yank stack with the following mappings nmap [y (YoinkRotateBack) @@ -583,6 +585,11 @@ if g:is_win || g:is_mac let g:yoinkSyncSystemClipboardOnFocus = 1 endif +""""""""""""""""""""""""""""nvim-minipyank settings""""""""""""""""""""""""" +nmap p (miniyank-autoput) +nmap P (miniyank-autoPut) +"}} + "{{ Linting and formating """""""""""""""""""""""""""""" ale settings """"""""""""""""""""""" " linters for different filetypes