Side-effects of <2-LeftMouse> of Vim with manpager in Terminal.app

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Side-effects of <2-LeftMouse> of Vim with manpager in Terminal.app

Yongwei Wu
I have recently found the manpager plugin, and am using it (it is cool!). One problem is that it does not map double-click, like the help file. So I added in my .vimrc:

au FileType manĀ  nmap <buffer> <2-leftmouse> <C-]>

Then, to my bewilderment, I found it worked, but caused unwanted terminal (non-Vim) selection (from top-left to the cursor position). More investigation showed this happened only with the macOS Terminal app, but not iTerm2, or a Linux gnome-terminal. Before I dismissed it as a Terminal bug, double-click in a help file worked very well in the macOS terminal...

Anyone encountered similar problems or had a solution? Thanks in advance.

Best regards,

Yongwei

--
Yongwei Wu
URL: http://wyw.dcweb.cn/

--
--
You received this message from the "vim_use" 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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/CADs46iddfF8mQU0%2Be74wPeyKar1noc5q1p5cTXmB3u0Cf%2BZVFA%40mail.gmail.com.