If I set up the following autocmd:
:autocmd FocusGained * :echomsg "here"
Then from a command-line window do:
vim --remote-send ":tabnew<cr>"
I get the "here" message. This happens with a number of other
commands, including ":new", "i" (start insert mode), etc. This is a
problem for one of my scripts because it needs to be able to rely on
knowing when Vim actually has focus.
It wouldn't be a problem in my use case if it immediately triggered
the FocusLost event after the --remote-send keystrokes, but it
doesn't.
- Christian
--
For many, the declension of life is: I go, you go, ego.
Christian J. Robinson <[email protected]> http://christianrobinson.name/