将所有行复制到剪贴板 [英] Copy all the lines to clipboard
本文介绍了将所有行复制到剪贴板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有什么方法可以在VI编辑器中将所有行从打开的文件复制到剪贴板.我尝试了 y G ,但是它没有使用剪贴板存储这些行.
Is there any way to copy all lines from open file to clipboard in VI editor. I tried yG but it's not using clipboard to store those lines.
那有可能吗?
推荐答案
您应将文本拖到*
或+
g g " * y G
说明:
-
gg
将光标移到文件的第一个字符 -
"*y
从第一行开始对寄存器*
发出猛拉命令,直到... -
G
转到文件末尾
gg
to get the cursor to the first character of the file"*y
to start a yank command to the register*
from the first line, until...G
to go the end of the file
这篇关于将所有行复制到剪贴板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文