是否可以不使用vim的小删除注册表?

前端之家收集整理的这篇文章主要介绍了是否可以不使用vim的小删除注册表?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我想删除的文本总是进入编号的寄存器,但是我经常去找到我最近在编号寄存器中删除的东西,它不在那里,因为它不到一行.

Numbered register 1 contains the text deleted by the most recent
delete or change command,unless the command specified another
register or the text is less than one line (the small delete register
is used then). With each successive deletion or change,Vim shifts the
prevIoUs contents of register 1 into register 2,2 into 3,and so
forth,losing the prevIoUs contents of register 9.

这是一个相当罕见的事情,但是当它发生时,真的很烦人,因为我必须撤消回到我删除文本的点,然后删除到一个命名的注册表或立即使用删除的文本,因为它不在注册0,因为我删除别的东西(流浪空白,不好的评论,无论如何)在我的方式粘贴我刚刚删除的小文本.

我希望小删除条件不影响输入编号寄存器1-9的文本.任何人都知道一种实现这一点的方法

another such feature request on Reddit年期间,发现Vim中出现了一个错误
:set clipboard^=unnamed

那个bug has been fixed在Vim 7.3.649中.所以,如果你使用旧版本,你仍然可以从错误中受益:-)

如果您真的认为这是有用的行为,您可以在vim_dev mailing list上提出此增强请求,但总体来说,其他选项将被拒绝.如果您可以做出令人信服的争论,并提供一个包含文档和测试的完整补丁,您的机会更高.

原文链接:https://www.f2er.com/bash/386286.html

猜你在找的Bash相关文章