加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

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

发布时间:2020-12-15 18:46:12 所属栏目:安全 来源:网络整理
导读:我想删除的文本总是进入编号的寄存器,但是我经常去找到我最近在编号寄存器中删除的东西,它不在那里,因为它不到一行. Numbered register 1 contains the text deleted by the most recent delete or change command,unless the command specified another reg
我想删除的文本总是进入编号的寄存器,但是我经常去找到我最近在编号寄存器中删除的东西,它不在那里,因为它不到一行.

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上提出此增强请求,但总体来说,其他选项将被拒绝.如果您可以做出令人信服的争论,并提供一个包含文档和测试的完整补丁,您的机会更高.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读