Ubuntu – Copying to system clipboard with vim not working under Ubuntu

ubuntu 12.04vim

I have been trying to figure out why when I use "*y or "*x in one terminal window running vim and "*p in another it doesn't paste what I had just copy or cut and just can't figure it out.

I know that * is the system clipboard buffer, but it will not copy between terminal windows.

I'm on Ubuntu 12.04 with Vim 7.3.

Best Answer

Use :version to see what features are included (+) or not (-).

If you see -clipboard and -xterm_clipboard then it's not going to work. You could compile vim yourself including those features, or you could install vim-gtk through:

apt-get install vim-gtk