In vim to edit the code want to copy out to the browser or other places, with YY copied to another place to stick to find that is not the original copy of the content, very headache ...
This is because VIM has its own set of Clipboard systems (clipboard) that are not interoperable with Ubuntu's clipboard.
After seeing a lot of posts saying you've selected what you want, press 3 keys "+y" (quotation marks, plus sign, and letter Y) so that what you want to copy goes into the system Clipboard.
That's only half right. ~_~
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
Open file to compile file gvim-v filename
Then you can use the +y.
Alias can be defined in. bashrc
Alias GVi = ' Gvim-v '
The next time you open the file, just use GVi filename.
Ubuntu content copied to browser under VIM