Guillaume Bog wrote:
Hi everbody,
I'm new on this list. I use vim in a terminal on ubuntu everyday and
still need some help for efficient use. If the file i'm editing is
longer than one screen and I want to paste it somewhere else (say in a
firefox textarea), I have to go out of vim, cat the file i'm editing,
select it and then paste it (with middle mouse button). I now the
visual mode, and how to highlight all (gg v G). But this operation
doesn't fill the proper buffer.
I have searched some tips and vim.org but... Any idea?
Regards,
Guillaume
Try the following after the ggVG for selecting the entire text: (*note
it is a capital V)
"+y (this will yank the highlighted text to the system clipboard)
to "paste" something from the system clipboard try:
"+p
I have also added the following to my _vimrc in Windows to use these as
user commands :Co and :Pa .
:command -range Co :norm"+y
:command Pa :norm"+p
Hope this helps,
Kevin