Double Quote not working in Vim in command mode

血红的双手。 提交于 2020-01-03 04:38:46

问题


I want to copy text from vim buffer to the system clipboard by using the command "*y but when I press the double quote sign in command mode, it doesn't seem to get fired at all as I don't see anything in the status bar (nothing gets copied also even if I blindly continue with the command). I can see all other commands in the status bar in vim. I'm using Ubuntu 12.04 and I have clipboard support enabled in my vim version.


回答1:


You should press "+y in NORMAL (or VISUAL) mode.

If you love to do it in command line, do this:

:y +

(same for "*y)



来源:https://stackoverflow.com/questions/18896127/double-quote-not-working-in-vim-in-command-mode

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!