You are not logged in.

#1 2008-11-20 18:36:58

speed145a
Member
Registered: 2008-05-02
Posts: 60
Website

[SOLVED] when i click inside vi my cursor moves to where i clicked!

i'm not sure what is different but now when i click somewhere in a file i am editing in vi, my cursor moves to where i clicked.

this is annoying because when i click outside the terminal and then go back in, my cursor ends up somewhere i don't want it...

along those lines it is giving me some "visual" insert instead of the way it used to be where i could right-click inside and get the context menu.

Last edited by speed145a (2008-11-20 19:29:37)


ARCH x86_64 ZEN

Offline

#2 2008-11-20 18:44:26

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

Re: [SOLVED] when i click inside vi my cursor moves to where i clicked!

Try issuing ":set mouse-=a" and see if that changes this behavior.  There are many vi mouse topics recently, you may want to check those out.


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

Offline

#3 2008-11-20 18:53:00

speed145a
Member
Registered: 2008-05-02
Posts: 60
Website

Re: [SOLVED] when i click inside vi my cursor moves to where i clicked!

wow!! i just realized you were saying to issue that while inside vi.  that worked great, but once i exit that vi session it reverts to the lame behavior


ARCH x86_64 ZEN

Offline

#4 2008-11-20 18:59:41

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

Re: [SOLVED] when i click inside vi my cursor moves to where i clicked!

Yeah, I think it's in the global /etc/virc file.

Offline

#5 2008-11-20 19:00:03

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

Re: [SOLVED] when i click inside vi my cursor moves to where i clicked!

Then edit your ~/.virc and add "set mouse-=a" in that file.

Edit:  after all these posts today (and meeting more people at my new job everyday) I'm absolutely amazed at how many people still use plain ol' vi.

Last edited by rson451 (2008-11-20 19:01:45)


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

Offline

#6 2008-11-20 19:02:47

speed145a
Member
Registered: 2008-05-02
Posts: 60
Website

Re: [SOLVED] when i click inside vi my cursor moves to where i clicked!

yay!  thanks guys


ARCH x86_64 ZEN

Offline

#7 2008-11-20 21:44:00

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: [SOLVED] when i click inside vi my cursor moves to where i clicked!

yeah hurrah!!
_that_ was the missing bit!
I read somewhere that I could use the shift-key while (man)handling the li'l rodent, and that worked but it was awkward.

The '-' solved it all!!

Thank you, guys - you have saved my sanity!!

Offline

#8 2008-11-21 05:21:17

B-Con
Member
From: USA
Registered: 2007-12-17
Posts: 554
Website

Re: [SOLVED] when i click inside vi my cursor moves to where i clicked!

I was having this annoyance as well -- thanks.

rson451 wrote:

Then edit your ~/.virc and add "set mouse-=a" in that file.

Edit:  after all these posts today (and meeting more people at my new job everyday) I'm absolutely amazed at how many people still use plain ol' vi.

I think Arch kind of tends to cater toward that sort of user base. tongue

Offline

#9 2008-11-21 06:09:32

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

Re: [SOLVED] when i click inside vi my cursor moves to where i clicked!

B-Con wrote:

I think Arch kind of tends to cater toward that sort of user base. tongue

I think he meant "vi" as opposed to "vim".

Regarding the shift+click for paste support - that's how I do it 8)

Offline

Board footer

Powered by FluxBB