How to enable mouse wheel scrolling in non-gui vim.exe?

499 views
Skip to first unread message

Toddintr

unread,
Nov 2, 2011, 12:14:45 AM11/2/11
to vim_use
I am on Windows 7, and using vim.exe (not gvim.exe) from within an
MSDOS console window (because I am using cscope). Term is set to
"win32". I am not able to use the windows scroll wheel. In fact
there is no vertical scroll bar shown, although the file length is
longer than the screen height. But I am able to use other mouse
functionality -- for example, I can pull down the horizontal window
splitter when help contents are displayed.

How can I enable mouse scroll buttons in non-gui vim.exe?

I am using release 7.3.

Thanks -

Todd

Toddintr

unread,
Nov 2, 2011, 12:23:53 AM11/2/11
to vim_use
I meant to say "How can I enable mouse scroll WHEEL in non-gui
vim.exe?" -- sorry.

Todd

Tony Mechelynck

unread,
Nov 2, 2011, 1:08:07 AM11/2/11
to vim...@googlegroups.com, Toddintr

AFAICT it depends on the terminal; and I have freed myself from Windows
some time ago (months? years? Years I think) so I cannot experiment on a
Windows console.

Here on Linux, every different terminal emulator reacts differently to
mouse actions: some don't pass them to Vim at all, some can move the
cursor and open a "Select" area by dragging but won't react to the mouse
wheel, some will move the cursor up and down when I roll the wheel but
won't react to mouse clicks... Apparently I can't get full mouse
performance in console Vim but only in gvim.

Maybe you can configure your cmd.exe console, maybe by clicking (left or
right, I'm not sure) the top left icon of the terminal window when Vim
is running in it?


Best regards,
Tony.
--
There was a bluestocking in Florence
Wrote anti-sex pamphlets in torrents,
Till a Spanish grandee,
Got her off with his knee,
And she burned all her works with abhorrence.

Toddintr

unread,
Nov 3, 2011, 7:26:04 AM11/3/11
to vim_use
No takers for this question? Not even Sven? ;-)

Paul

unread,
Nov 4, 2011, 2:56:36 PM11/4/11
to vim_use
On Thursday, 03 November, 2011 at 11:26:04 GMT, Toddintr wrote:
>No takers for this question? Not even Sven? ;-)
>
>On Nov 2, 11:23?am, Toddintr <amsabu...@gmail.com> wrote:
>> I meant to say "How can I enable mouse scroll WHEEL in non-gui
>> vim.exe?" -- sorry.

Have you tried ':set mouse=a'? See :help mouse

--

.

Toddintr

unread,
Nov 5, 2011, 10:15:33 AM11/5/11
to vim_use
The "mouse" is already set to "a".
Reply all
Reply to author
Forward
0 new messages