After installing VIM on the new machine, you can use YY to re-hold, but "+y copy to the system Clipboard does not work." Follow the steps below:
1. First to check if your vim version supports +clipboard, the command is: version
Or you can enter: Reg to see if the X and + registers are included
2. If there is support, then the method mentioned above can be, otherwise:
Need to install Vim-gnome
sudo apt-get Install Vim-gnome
vim-v filename
Then you can use the +y.
Open Vim ~/.VIMRC can see the Clipboard keyword, the content is as follows:
if has ( " clipboard ) if has ( unnamedplus ) " set clipboard=unnamed,unnamedplus else Mac and Windows, use * registe R for Copy-paste set clipboard=unname D endif endif
Original is our previous version does not support clipboard, after installing Vim-gnome can support, system Clipboard function recovery.
Cannot use "+y copy" in Vim