You are not logged in.

#1 2008-08-04 21:38:24

void.pointer
Member
From: Dallas, TX
Registered: 2008-07-30
Posts: 239

Cannot copy from vim in PuTTY

Hi,

I'm not sure if this is the right place to post this question, but here I go anyway...

In PuTTY I'm able to copy text just by selecting it. This works everywhere except for inside Vim. In Vim, when I select text, it automatically sets Visual mode for some reason. Back when I was using Ubuntu Server (before Archlinux, which is what I'm using now) it didn't do this. Is there any way to select text in Vim through PuTTY? I need whatever I select to be copied to the Windows clipboard so I can paste it elsewhere. Thanks.

Offline

#2 2008-08-04 22:35:12

nj
Member
Registered: 2007-04-06
Posts: 93

Re: Cannot copy from vim in PuTTY

:set mouse=

Offline

#3 2008-08-04 23:29:56

void.pointer
Member
From: Dallas, TX
Registered: 2008-07-30
Posts: 239

Re: Cannot copy from vim in PuTTY

equal to what?

Offline

#4 2008-08-05 00:11:56

thayer
Fellow
From: Vancouver, BC
Registered: 2007-05-20
Posts: 1,560
Website

Re: Cannot copy from vim in PuTTY

Add this to your .vimrc:

set mouse=a

thayer williams ~ cinderwick.ca

Offline

#5 2008-08-05 01:52:35

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: Cannot copy from vim in PuTTY

Also just try holding shift while highlighting.  I've got a bunch of things in my .vimrc to enable mouse stuff in screen inside putty and just holding shift while highlighting copies fine for me in putty.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#6 2008-08-05 15:58:41

nj
Member
Registered: 2007-04-06
Posts: 93

Re: Cannot copy from vim in PuTTY

void.pointer wrote:

equal to what?

Set it equal to nothing. That stops vim from interpreting the mouse clicks.

Offline

Board footer

Powered by FluxBB