On 2022-12-04, Bram Moolenaar wrote:
> > On Sat, 3 Dec 2022 23:07:15 -0800
> > Gary Johnson wrote:
> > > I was troubleshooting a problem with the behavior of my mouse in
> > > gvim when I discovered that typing Ctrl-K in insert mode and moving
> > > the mouse to another window enters the special key code
> > > "<LeftMouseNM>".  I can't find this special key documented anywhere.
> > > Even ":helpgrep \cmousenm" didn't return any results.
> > > 
> > > Would someone please tell me what "<LeftMouseNM>" means?
> > 
> > I know that ‘NM’ stands for ‘Non Mappable’.  And that there is one entry
> > in the docs, which you can find with this pattern:
> > 
> >     :helpg \v\cmouse.?nm
> > 
> > Other than that I have no clue.  But I'm sure the devs can help.
> 
> You are right, these are non-mappable mouse clicks.  They are used
> internally, you can't really use them.  But they might show up in some
> places.

Thank you both for the explanations.

I seem to be able to map it, though.  I fixed my problem of
accidentally changing window focus while typing by adding this to my
vimrc:

    imap <LeftMouseNM> <Nop>

Or does non-mappable mean that <LeftMouseNM> cannot be on the right
side of a mapping?

Regards,
Gary

-- 
-- 
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 vim_use+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/20221204162027.GG16317%40phoenix.

Reply via email to