www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/01/20/11:47:05

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <49759CCD.3090302@gmail.com>
References: <49759CCD DOT 3090302 AT gmail DOT com>
Date: Tue, 20 Jan 2009 11:44:54 -0500
Message-ID: <17393e3e0901200844x72a196edo9873653466f1e1d2@mail.gmail.com>
Subject: Re: paste into vim
From: Matt Wozniski <godlygeek AT gmail DOT com>
To: cygwin AT cygwin DOT com
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On Tue, Jan 20, 2009 at 4:43 AM, ludo wrote:
> Hi,
>
> how to paste in vim (not gvim) from clipboard ?
>
> I have two terminals (rxvt)
>
> In the first terminal, I select a text with the mouse (and I can see it in
> the windows clipboard via clipbrd.exe)
>
> In the second terminal, I run vim, and I want to paste the selected text
> I try the command "*p
> but vim pastes nothing
>
> (If I try with gvim, gvim pastes the selected text)

On Linux/Unix, pasting from the primary X selection is done with "*p
and pasting from the clipboard is done with "+p - presumably you're
running a Cygwin vim, since it works fine with Rxvt's PTYs, so I would
expect you to need "+p for pasting.  I can't test this, at present,
though, so you'll have to let me know if it works...

~Matt

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019