[prev in list] [next in list] [prev in thread] [next in thread]
List: vim
Subject: Re: copying text form into vim
From: Emmanuel Touzery <emmanuel.touzery () wanadoo ! fr>
Date: 2002-12-11 8:14:45
[Download RAW message or body]
On Wednesday 11 December 2002 09:07, you wrote:
> Hi,
>
> often I have two vim's open. Is there a way to copy text from one vim
> session into the other? I am using vim in an xterm, so it would be nice to
> select text with the left mouse button and past with the middle button.
> This works when I hold down the shift-key, but then also the line numbers
> are pasted. Is there a way to avoid this? Is it possible to copy and paste
> without mouse between two vim sessions? I usually use the mouse only to
> drag the statusline.
I think you want:
" use X clipboard by default.
set clipboard=unnamed
that way, when you copy in vim, it will copy in the X buffer (and pasting will
paste from the X buffer). That way you can copy/paste from two vim windows
very simply.
you don't have to use this, by default if you copy/paste from/in the "*"
buffer, you'll use the X buffer (eg "*y "*p).
See also :h clipboard
> Thanks & regards, Catherine.
HTH,
emmanuel
--
"Stop the world, I want to hop off!"
--Guy Bedos
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic