Edit the code in vim to copy it to the browser or somewhere else. After the copy with YY to go to another place sticky post found that is not the original copy of the content, very headache ...
This is due to the fact that Vim has its own set of Clipboard systems (clipboard). This system is not interoperable with Ubuntu's clipboard.
After seeing a lot of posts saying you've selected what you want, press 3 keys "+y (the number, plus, and y) so that the copied content goes into the system Clipboard.
That's only half right. ~_~
1. First check if your vim version number supports +clipboard, the command is: version
Or you can enter: Reg to see if x and + registers are included
2. If there is support, then the previous method can be, otherwise:
Need to install Vim-gnome
sudo apt-get install Vim-gnome
Open the file you want to compile gvim-v filename
Then you can use the +y.
Ability to define alias in. BASHRC
Alias GVi = ' Gvim-v '
The next time you open the file, you can use GVI filename.
------------------------------------------------------------------------I am a gorgeous cutting line----------------------------------------- ------------------------------------
With the Vim-gnome package installed, VIM will be able to support clipboard.
Then add in the $HOME/.VIMRC:
Set Clipboard=unnamedplus
You can then use Y and p to arbitrarily copy the contents of the paste (to) other places (no more "+y press three keys so troublesome!"
!
。 )
Ubuntu content copy to browser under VIM