Re: FVWM: fvwm focus change causes vim to leave insert mode

2021-07-27 Thread Dominik Vogt
On Tue, Jul 27, 2021 at 12:28:42PM -0400, John Sellens wrote: > Why did I think this was fvwm related? I think xterm only gets these events > with a suitably modern window manager. The windowmanager cannot intercept these events, but the exact sequence of events depends on how windows are managed

Re: FVWM: fvwm focus change causes vim to leave insert mode

2021-07-27 Thread John Sellens
Thank you Thomas, Dominik, and Chris for your replies. tl;dr is that there was a vim bug between version 8.2.2345 Jan 14 2021 and 8.2.2564 Mar 3 2021, and the ubuntu 21.04 vim 8.2.2434 has the bug. Chris's mention of xterm FocusIn/FocusOut led me down the right path. vim 8.2.2345 added support

Re: FVWM: fvwm focus change causes vim to leave insert mode

2021-07-23 Thread Chris Siebenmann
> I've googled and FAQd and experimented without success. > > When I have the vim editor open in an xterm window, in insert mode, > and move my mouse (and focus) into another window, the vim in the > original window receives some sort of escape sequence that causes > it to leave insert mode and bee

Re: FVWM: fvwm focus change causes vim to leave insert mode

2021-07-22 Thread Dominik Vogt
On Thu, Jul 22, 2021 at 03:34:56PM -0400, John Sellens wrote: > When I have the vim editor open in an xterm window, in insert mode, > and move my mouse (and focus) into another window, the vim in the > original window receives some sort of escape sequence that causes > it to leave insert mode and b

Re: FVWM: fvwm focus change causes vim to leave insert mode

2021-07-22 Thread Thomas Adam
On Thu, Jul 22, 2021 at 03:34:56PM -0400, John Sellens wrote: > When I have the vim editor open in an xterm window, in insert mode, > and move my mouse (and focus) into another window, the vim in the > original window receives some sort of escape sequence that causes > it to leave insert mode and b

FVWM: fvwm focus change causes vim to leave insert mode

2021-07-22 Thread John Sellens
I've googled and FAQd and experimented without success. When I have the vim editor open in an xterm window, in insert mode, and move my mouse (and focus) into another window, the vim in the original window receives some sort of escape sequence that causes it to leave insert mode and beep. I tried