On 05/09/09 10:59, Christophe-Marie Duquesne wrote:
>
> That could be nice, but it does not seem to work in roxterm.
>
> au FocusGained * echo 'foo' -> this does not print anything when the
> terminal loses focus.
>
> Do you know a terminal where this works?
>
> I don't use the gui version, because I want to be able to<C-z> and be
> in a shell.
That can be arranged:
:map <C-Z> :shell<CR>
Of course, that shell will run inside the Vim command-line in a "dumb"
terminal, so fancy stuff like "less" won't look nice.
You can still minimize the GUI with ":st[op]" or ":sus[pend]".
Or else, instead of FocusGained/FocusLost, you might want to catch the
CursorHold event, which happens in Normal mode whenever you stop typing
for 'updatetime' milliseconds. (Triggering it also at CursorHoldI might
have undesirable side-effects, I think.)
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
136. You decide to stay in a low-paying teaching job just for the
free Internet access.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---