当我在
vim中删除某些东西时,它被添加到编号的寄存器中.我最后打的一个项目是注册表.我怎么能让vim自动记住最后10个yanks?
原文链接:https://www.f2er.com/bash/384125.html我试过YankRing,但它改变了太多的vim行为.这个问题的另一个措辞:我如何配置YankRing,因此它只会在粘贴之后添加Ctrl-n / Ctrl-p行为(循环通过以前的yanks)?
我经常呻吟一个字,视觉选择另一个字,粘贴,粘贴.没有YankRing,最后一个粘贴放置第一个选择的单词.随着YankRing,它再次粘贴同一个词. (这只是一个例子.)
这里有一些我的yankring设置.如您所见,我已经看过YankRing文档,以禁用尽可能多的选项,以恢复正常的vim行为.
" Some settings to try to get yank ring to not mess with default vim " functionality so much. let g:yankring_manage_numbered_reg = 0 let g:yankring_clipboard_monitor = 0 let g:yankring_paste_check_default_buffer = 0 " Don't let yankring use f,t,/. It doesn't record them properly in macros " and that's my most common use. Yankring also blocks macros of macros (it " prompts for the macro register),but removing @ doesn't fix that :( let g:yankring_zap_keys = '' " Disable yankring for regular p/P. This preserves vim's normal behavior,but " I can still use C-p/C-n to cycle through yankring. let g:yankring_paste_n_bkey = '' let g:yankring_paste_n_akey = '' let g:yankring_paste_v_key = ''