Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I like vim. I think touching mice is dirty. But sometimes when my hand is already on a mouse, it sure would be nice to be able to scroll the text or click a location in the text and have the cursor jump there. Also, I wish I could copy and paste with command-c, command-v. Is there any software out there that answers this desire? How about for the Mac?

share|improve this question
up vote 8 down vote accepted

For linux (or at least the Debian family of distributions, e.g Ubuntu) there are the vim-gnome and vim-gtk packages.

For Mac there is MacVim, for Windows gvim. Both are linked from the vim download page.

share|improve this answer
oh wow... cool! – John Berryman Feb 3 '11 at 22:30

On most systems :set mouse=a will enable your mouse inside vim even on the console.

I personally prefer using the vim keybindings, but some variant on:

:vmap <C-c> "*y
:imap <C-v> <ESC>"*gPa
:nmap <C-v> "*gP

Will probably do what you want for ctrl-c and ctrl-v

share|improve this answer
Hmm... maybe I'm doing something wrong, but I couldn't get the :set command to work. To experiment, I opened vim to trash.txt, inserted some text, and then pushed <esc>:set mouse=a – John Berryman Feb 3 '11 at 23:30
@John you put set mouse=a in the file ~/.vimrc. Read more here vim.wikia.com/wiki/Open_vimrc_file – phunehehe Feb 4 '11 at 2:45
@John If you are on Mac, the default Terminal.app does not support the mouse. Use iTerm. – Josh Lee Feb 4 '11 at 5:17

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.