vim系统寄存器*和+不起作用 [英] vim system register * and + not working

查看:339
本文介绍了vim系统寄存器*和+不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

:echo has('clipboard')返回1,但是每当我执行 + yy * yy 在这些寄存器中似乎什么也没有。如果我使用常规的 yy 复制另一行文本,则尝试使用 CONTROL + V 从寄存器中粘贴内容发生。如果我尝试 + p ,vim会粘贴我使用常规 yy 命令复制的文本行。

:echo has('clipboard') returns 1, but whenever I execute "+yy" or "*yy" nothing seems to be in those registers. If I use regular yy to copy another line of text, then try to paste from the register using CONTROL+V nothing happens. If I try "+p vim pastes the line of text I copied using the regular yy command.

这是怎么回事?我是在FreeBSD上。

What's going on here? I'm on FreeBSD by the way.

推荐答案

您的vim版本可能未通过X11剪贴板集成进行编译。

Your vim version may not be compiled with X11 clipboard integration.

在vim中,运行:version命令并在输出中查找xterm_clipboard。它的前缀为+((支持)或-(不支持)符号。

In vim run the :version command and look for xterm_clipboard in the output. It will be prefixed with a + (supported) or - (unsupported) sign.

这篇关于vim系统寄存器*和+不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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