Hi,

Peter Mattern schrieb am 15.01.2015 um 23:15:
> Thank you very much for your quick and detailed answer.
> 
> Indeed I've got a mapping jk --> Esc. So most of the findings are 
> explained very well.
> The only thing I still don't get is why the issue can't be seen in gvim.

I don't do much work with vim, and even less in a terminal, so my answer
might be totally wrong. But IIRC pasting with the middle mouse button in
a terminal is handled by the terminal itself. It feeds the pasted text
to the currently running program as a series of keystrokes and (in this
case) Vim has no way to distinguish between those simulated keystrokes
and your real input. I think this is one of the reasons behind the 'paste'
option (see ":help 'paste'). You might also want to check if

  :set mouse=a

helps. This tells Vim to use the mouse in all modes (except during the
hit-enter prompt), but I don't know if it works for all terminals. You
can more on this at ":help mouse-using".

OTOH Gvim completely handles the mouse itself, so it sees the middle
mouse click and translates it to a paste action. Depending on how the
paste action is implemented mappings may or may not be disabled during
its course.

Regards,
Jürgen

-- 
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us.     (Calvin)

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui