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

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

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 Wu

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

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