Albie Janse van Rensburg wrote:
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
:help x11-selection
in particular
:help quoteplus
You will have to be in either a virtual terminal (in X) or in a gui
vim (gvim), as far as I know. I am currently on a windows machine, so
I can not verify whether it will work from a "proper" tty (alt-f1 to
f6), but you should be able to select the current file's text into the
x11 cut buffer by typing (in normal mode):
gg"*G
...which you should be able to paste into firefox.
Hope it helps
Whoops. I meant
gg"*yG
extra: on Windows XP, it also works to use + (a little easier to type), i.e.
gg"+yG
copies the current buffer into the windows clipboard.
--
Albie Janse van Rensburg (neonpill)
Registered Linux User 438873 | <http://counter.li.org>