You are not logged in.

#1 2006-11-01 15:04:08

jinn
Member
From: Gothenburg
Registered: 2005-12-10
Posts: 506

vim annoyance(copies the line numbers also)..[solved]

when running vim with gnome-terminal, or even xterm and want to copy a certain amount of lines with the mouse (and yes i know i can do it with commands) it seems to always copy the line numbers i have set.. its very annoying. Is there a fix for this?

my friend told me it could be something with gpm.. but I dont really know how to fix it. Anyone with the same problems that have fixes?

thx
Jinn


The ultimate Archlinux release name: "I am your father"

Offline

#2 2006-11-01 15:52:21

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: vim annoyance(copies the line numbers also)..[solved]

The best way would be to allow terminal mouse support in vim.  I'd hope gnome-terminal handles mouse escapes properly.

Use the following:

set mouse=a
set ttymouse=xterm

You might also want to try ttymouse = xterm2.

This will make the mouse work within vim, instead of the mouse (and thus mouse selection) use your terminal.

This _does_ however, require a few things like xterm-clipboard, but the arch packages has what you need.

Alternatively, you can just :set nonu to turn off line numbers.

Offline

#3 2006-11-02 14:36:46

jinn
Member
From: Gothenburg
Registered: 2005-12-10
Posts: 506

Re: vim annoyance(copies the line numbers also)..[solved]

thx alot..

the vim settings did the trick.


The ultimate Archlinux release name: "I am your father"

Offline

Board footer

Powered by FluxBB