Patch 7.3.343 introduced improved mouse support for Vim when running in
the urxvt terminal. It requires that the 'ttymouse' option be set to
"urxvt" in order to enable the new mouse support. Since the patch,
strange behavior sometimes occurs (such as ignored mouse events) if
ttymouse is left at its old default value, "xterm2", when running within
urxvt. Setting the option to "urxvt" makes these problems disappear.
However, "urxvt" is not documented as a valid string value for the
'ttymouse' option, so the only way a user could find out about how to
enable this feature is to read the commit message for patch 343. The
attached patch adds a trivial mention of the new valid setting to the
'ttymouse' documentation in options.txt, which should improve the
discoverability of this feature.
Perhaps it would be even better if 'ttymouse' were automatically set to
"urxvt" when 'term' is "rxvt-unicode" or "rxvt-unicode-256color"?
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
diff -r 379a6398d462 runtime/doc/options.txt
--- a/runtime/doc/options.txt Wed Oct 26 23:48:21 2011 +0200
+++ b/runtime/doc/options.txt Mon Oct 31 14:23:04 2011 -0400
@@ -7368,6 +7368,8 @@
jsbterm JSB term mouse handling.
*pterm-mouse*
pterm QNX pterm mouse handling.
+ *urxvt-mouse*
+ urxvt Mouse handling for the urxvt (rxvt-unicode) terminal.
The mouse handling must be enabled at compile time |+mouse_xterm|
|+mouse_dec| |+mouse_netterm|.