views:

44

answers:

3

I've found these two articles http://vimdoc.sourceforge.net/cgi-bin/vimfaq2html3.pl (see 31.13) and http://www.tummy.com/journals/entries/jafo_20060727_145450

But am unfamiliar with basic vim setup. Can anyone help me with a step by step instructions to making mouse usuage in command line mode automatically enabled? (and you will have good luck for a week if you can shed some light on enabling paste from OS to terminal window in VIM)

Note: Using latest mac os

+2  A: 

To enable mouse support in all modes put this in ~/.vimrc:

set mouse=a
sth
+1  A: 

Note that Terminal.app has no mouse support, you'll need to use xterm in X11 to get mouse working.

I did find a 'plugin' for Terminal that claims to add mouse support, however it is in alpha and has no mention of 10.6. If it does work at all you'd probably need to run Terminal.app in 32 bit mode. http://mac.softpedia.com/get/Utilities/MouseTerm.shtml

Coxy
There's also an application called iTerm which does have mouse support, though I've found that it likes to use 3-5% CPU at idle, which can be annoying on a macbook.
Evan Krall
+1  A: 

Try starting vim like this:

screen vim

That should enable copy/paste with the mouse. You might also want to set-up an alias in ~/.bashrc for this.

Salo