[VIM]How to Copy&Paste in different VIM terminal

文章目錄
  1. PURPOSE
  2. How TO Do
    1. Check your VIM information first
    2. Install the VIM-Plugin to enable the feature.

PURPOSE

Recent I want to copy&past in different VIM terminals, so I spent a few time to figure out how to do that. w

How TO Do

There is a simple way to do.

Check your VIM information first

  1. open the shell terminal
  2. type the following command to check the vim information
1
vim --version | grep xterm_clipboard

If you find the below message, it tells you that the xterm_clo[board of VIM is off

1
-xterm_clipboard

Install the VIM-Plugin to enable the feature.

1
2
3
sudo apt-get install vim-athena
sudo apt-get install vim-gnome
sudo apt-get install vim-gtk