Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 vim 中将一系列行拉到系统剪贴板。我可以用51gg116"+yy. 我想通过:符号来做到这一点。我可以""通过命令复制到注册:51,116y。但是,命令51,116"+y不起作用。如何修复最后一个命令?
51gg116"+yy
:
""
:51,116y
51,116"+y
:help :y说:
:help :y
:[range]y[ank] [x] Yank [range] lines [into register x]. Yanking to the "* or "+ registers is possible only when the |+clipboard| feature is included.
所以你的答案显然是:
:51,116y +
您的问题是您尝试使用:yEx 命令,就好像它是y正常模式命令一样。
:y
y