Wednesday, April 28, 2010

Re: How to map to for modeless selection

On 28/04/10 14:25, Jean Johner wrote:
> Hello,
>
> I do not use<C-LeftMouse> for tags but I am very fond of<C-S-
> LeftMouse> for modeless selection while editing.
>
> Is there a way to remap<C-LeftMouse> to<C-S-LeftMouse>.
>
> I tried "map<C-LeftMouse> <C-S-LeftMouse>" with no success.
>
> Best regards
>
> Jean Johner
>

Well, mappings are modal: they're either nmap, omap, xmap, smap, imap,
cmap... or several of them together. The modeless selection is, well,
modeless; it can even happen across window boundaries.

So IIUC you cannot reassign the modeless selection to something else by
means of a mapping. It's <C-S-LeftDrag> in the GUI, or any of the
triggers listed at ":help modeless-selection" but AFAIK you can't change
them (short of recompiling the appropriate source module(s), which is
not recommended).


Best regards,
Tony.
--
GUARD #1: What -- a swallow carrying a coconut?
ARTHUR: It could grip it by the husk!
GUARD #1: It's not a question of where he grips it! It's a simple question
of weight ratios! A five ounce bird could not carry a 1 pound
coconut.
The Quest for the Holy Grail (Monty
Python)

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

No comments: