I have VIM installed with clipboard and xterm_clipboard supported. But registers "* and "+ don't work. I suspect that Ubuntu server version doesn't have GUI support, so it doesn't have clipboard support neither. According to VIM documents, "* stands for PRIMARY selections and "+ stands for CLIPBOARD in X server. I access to the server through SSH. What I want to do is to copy/paste between separate VIMs opened in different terminals. The case likes I open two terminal accesses to ubuntu server through SSH and open VIM in these two terminals. If PRIMARY selection and CLIPBOARD are supported, VIM can access them when do copy/paste so that I can copy/paste between two VIMs quickly.
I can copy/paste through mouse selection from windows terminal. But this relies on windows terminal's feature. If I can copy/paste directly in VIM through ubuntu server's clipboard, that would be much convenient.
Thanks for @muru's clarification. Now, I understand more clearly X11 and X11-forwarding. What I ask is how to enable X11 on ubuntu server so that VIM can use X11's clipboard and the copy/paste content can be shared in different Vim sessions. Ideally, I don't want to install whole GUI packages. I tried to install xorg and xauth, but they don't work.
Unable to copy text from the terminal to external programs is not what I want. It solves copy/paste between terminal and other programs on local PC. But what I want is to copy/paste between different Vim sessions opened on same server.
Finally, I found the answer https://vi.stackexchange.com/questions/19899/vi-and-registers-do-not-exist. It works for me.