The system is Centos7.2. I have installed vim-enhanced and vim-X11, used vimx command.

It shows that vimx supports clipboard and xterm_clipboard. But in vimx, there is no reg + and reg *. I can't copy text to system clipboard using command "+yy

supporting clipboard and xterm_clipboard there is no register + and *

  • 2
    Removed tag gvim. Vim needs to connect to the X server to be able to interact with the system clipboard. Might be that Vim is somehow not able to connect to X. Are you able to start any X application from your terminal (like xterm or xclock)? Are you able to do that from inside Vim (like: :!xterm)?
    – Ralf
    Commented Jul 6, 2019 at 9:54
  • 2
    BTW: If echo v:windowid prints 0 (zero), Vim is not connected to X.
    – Ralf
    Commented Jul 6, 2019 at 13:19
  • @Ralf I connect to a Linux server using secureCRT, and run the command vimx in command-line mode. Command echo v:windowid in vimx prints 0. There is no command xterm or xclock on the remote server. Thanks, I will search 'X server' for help.
    – abgnwl
    Commented Jul 9, 2019 at 7:04

1 Answer 1


On GNOME terminal use shift + mouseleft + drag to select. Ctrl + Shift + C to copy. Ctrl + Shift + V to Paste.

  • 2
    Well, that technically transfers the responsibility to Gnome... but the user may be using another DE, or maybe he wants to include "+yy in a function/macro/whatever.
    – Roflo
    Commented Feb 7, 2020 at 20:02
  • "+yy is not working in debian or ubuntu's gnome terminal. That's why.
    – Bapi
    Commented Feb 8, 2020 at 15:29

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.