aboutsummaryrefslogtreecommitdiff
path: root/plugins.vim
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2020-10-13 00:54:41 +0800
committerjdhao <jdhao@hotmail.com>2020-10-13 00:54:41 +0800
commita1d9d9a8520c8dc0c3dc23129f31d1a2c59a15a1 (patch)
treef5742fb5f9cbab68b174106d53fa6e78723e1d31 /plugins.vim
parent1d1a0a22266102a0c1cae0dc19cbe4de22f8a51a (diff)
add nvim-miniyank
Diffstat (limited to 'plugins.vim')
-rw-r--r--plugins.vim15
1 files 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 <c-n> <plug>(YoinkPostPasteSwapBack)
" nmap <c-p> <plug>(YoinkPostPasteSwapForward)
- nmap p <plug>(YoinkPaste_p)
- nmap P <plug>(YoinkPaste_P)
+ " The following p/P mappings are also needed for ctrl-n and ctrl-p to work
+ " nmap p <plug>(YoinkPaste_p)
+ " nmap P <plug>(YoinkPaste_P)
" Cycle the yank stack with the following mappings
nmap [y <plug>(YoinkRotateBack)
@@ -583,6 +585,11 @@ if g:is_win || g:is_mac
let g:yoinkSyncSystemClipboardOnFocus = 1
endif
+""""""""""""""""""""""""""""nvim-minipyank settings"""""""""""""""""""""""""
+nmap p <Plug>(miniyank-autoput)
+nmap P <Plug>(miniyank-autoPut)
+"}}
+
"{{ Linting and formating
"""""""""""""""""""""""""""""" ale settings """""""""""""""""""""""
" linters for different filetypes