Vimrc设置正常的yanking /删除粘贴以复制到剪贴板


0

如何在Vim中设置vimrc以使默认寄存器成为剪贴板?我基本上想要更改与默认寄存器交互的所有键。

Answers:


2

您正在寻找

:set clipboard^=unnamedplus

所有带寄存器的命令现在都默认为剪贴板,就像你已经预先设置一样"+


我在gvim中运行该命令它告诉我E474:无效arguemnt:clipboard ^ = unnamedplus
Christian

你至少需要Vim 7.3.151。
Ingo Karkat

现在它运行了。它适用于粘贴,但它不适用于yanking。
克里斯蒂安
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.