On Wed, Oct 26, 2011 at 11:42:17PM +0800, lilydjwg wrote: > Sorry my patch is wrong. > > After applied patch 343, when I enter Vim, the mouse is not recognized > by vim. Setting 'ttymouse' to 'xterm' or 'xterm2' will enable it. > Before the patch, I do not need to set 'ttymouse' to use mouse > support. There is nothing special about tmux; I recompiled and it's > the same in and outsite tmux. > > But there IS something wrong. The relative code is: > > ... > > I am attaching my working patch, hoping that this time I solved the > problem in the right way.
Is this patch available online somewhere? It was not attached to your message when you re-forwarded it. I have a similar problem: setting `ttymouse=xterm2` causes mouse events to be ignored by vim when running in tmux in urxvt. However, setting `ttymouse=urxvt` with the same setup causes mouse events to crazily flood vim; it's like the vim equivalent of printing a binary file to the terminal. [1] Your first patch restored the original (excellent) behavior of ttymouse=xterm2 under tmux on rxvt-unicode. I am happy with this, but if there is a more comprehensive fix, I would love to use it! Cheers, guns [1]: vim v7-3-353, tmux 1.6 (dev), urxvt 9.12 -- 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
