On Thu, Jan 29, 2009 at 9:08 AM, Raúl Núñez de Arenas Coronado wrote:
>
> Hi all :)
>
> I use console Vim, and I would like to use the mouse to position the
> cursor into the Vim window, but *only for that*. I want the terminal
> emulator control the right click even when using Vim. I'm using Vim
> under Linux, with "set ttymouse=xterm2", BTW.
...
> Can this be changed?

I'm gonna take a swing at this and say "no".  At the very least, it's
not possible from within vim.  When vim takes over the mouse, it sends
CSI ? 1000 h (or CSI ? 1002 h for "xterm2") to the terminal emulator,
and the terminal emulator takes it from there, encoding mouse clicks
into strings and sending them to the application.  Most terminal
emulators let you override this behavior per-click by holding in
shift, but I don't know of any that let you override it
per-mouse-button.  Of course, you could hack the code of your terminal
emulator to allow it, but there's nothing that can be done from the
vim side.

~Matt

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to