Re: [vim] Mouse wheel in console-mode Vim
- From: Gary Johnson <garyjohn@xxxxxxxxxx>
- Date: 2 May 2008 01:10:39 GMT
Stefan Weiss <spaceman-6633f-20080522@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hi.
I noticed that some applications (for example, w3m) can react to mouse
events in the terminal. The following information is from the Vim help
pages:
| *xterm-mouse-wheel*
| To use the mouse wheel in a new xterm you only have to make the
| scroll wheel work in your Xserver, as mentioned above.
|
| To use the mouse wheel in an older xterm you must do this:
| 1. Make it work in your Xserver, as mentioned above.
| 2. Add translations for the xterm, so that the xterm will pass
| a scroll event to Vim as an escape sequence.
| 3. Add mappings in Vim, to interpret the escape sequences as
| <MouseUp> or <MouseDown> keys.
I assume that (1) and (2) are already set up correctly, since w3m in
xterm gets the mouse events just fine. Adding the <MouseUp> and
<MouseDown> mappings in Vim did nothing, however:
:map <MouseDown> <C-Y>
:map <S-MouseDown> <C-U>
:map <MouseUp> <C-E>
:map <S-MouseUp> <C-D>
Is there anything else I can try?
What are the values of the 'mouse' and 'ttymouse' options:
:set mouse? ttymouse?
Try
:set mouse=a
and see
:help mouse-using
--
Gary Johnson
.
- Follow-Ups:
- Re: [vim] Mouse wheel in console-mode Vim
- From: Stefan Weiss
- Re: [vim] Mouse wheel in console-mode Vim
- References:
- [vim] Mouse wheel in console-mode Vim
- From: Stefan Weiss
- [vim] Mouse wheel in console-mode Vim
- Prev by Date: [vim] Mouse wheel in console-mode Vim
- Next by Date: Re: [vim] Mouse wheel in console-mode Vim
- Previous by thread: [vim] Mouse wheel in console-mode Vim
- Next by thread: Re: [vim] Mouse wheel in console-mode Vim
- Index(es):
Relevant Pages
|