如何在vim中将选定的行复制到剪贴板 [英] How to copy selected lines to clipboard in vim
本文介绍了如何在vim中将选定的行复制到剪贴板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在vim中将选定的行复制到剪贴板.我知道如何为所有文本文件执行此操作,但我想为选定的行执行此操作.谢谢!
How to copy selected lines to clipboard in vim. I know how to do it for all text files, but I want to do in for selected lines. Thanks!
推荐答案
SHIFTV 使您进入选择行模式.然后 "*y 将当前选中的行拉到 *
寄存器,这是剪贴板.有 选择和drop registers
详细了解 *
和 +
寄存器在 Windows 和 Linux 上的区别.
SHIFTV puts you in select lines mode. Then "*y yanks the currently selected lines to the *
register which is the clipboard. There are quite a few different registers, for different purposes. See the section on selection and drop registers
for details on the differences between *
and +
registers on Windows and Linux.
这篇关于如何在vim中将选定的行复制到剪贴板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文