VIM:如何将抽取的文本附加到未命名的寄存器 [英] VIM: how to append yanked text to unnamed register

查看:14
本文介绍了VIM:如何将抽取的文本附加到未命名的寄存器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道"Ayy 可以将当前行附加到寄存器 a.

I know "Ayy can append current line to register a.

如何将当前行附加到未命名寄存器?

How do I append current line to unnamed register?

推荐答案

你可以使用这个

:let @"=@".getline('.')

附加到未命名的寄存器.我不相信有键盘快捷键可以做到这一点.(不过,您可以根据需要创建映射.)

to append to the unnamed register. I do not believe there is a keyboard shortcut to do this. (However you could create a mapping if you wanted.)

我之所以说没有键盘快捷键是因为 :h quote_alpha 只讨论大写字母(用于附加).并且 :h quote_quote

The reason I say that there is no keyboard shortcut for this is because :h quote_alpha only talks about uppercase letters (for appending). And there is no equivalent statement in :h quote_quote

这篇关于VIM:如何将抽取的文本附加到未命名的寄存器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆