Hmm... What GUI version _are_ you using? And on which OS and CPU, by the way?
>
> :echo remote_expr('GVIM', "foreground()")
> Didn't work. Same reason as above.
>
> Tried to send xterm escape sequence ("\e[5t"), that didn't work
> either.
>
> Is there any other way to do this?
>
> Thanks for your help!
Best regards,
Tony.
--
There is a theory that states: "If anyone finds out what the universe
is for it will disappear and be replaced by something more bazaarly
inexplicable."
There is another theory that states: "This has already happened ...."
-- Douglas Adams, "Hitch-Hikers Guide to the Galaxy"
- 7.1.002 is already rather old: there has been 227 additional patches since
then. There is bound to be at least _some_ bugfixes among them that you'd want
to have. The summary of those patches (one line for each) is at
http://ftp.vim.org/pub/vim/patches/7.1/README
- Cygwin X GUI or native-Windows GUI? Hm, probably Cygwin X since you're
implying you're not using Win32 Vim. For the latter, see
https://sourceforge.net/project/showfiles.php?group_id=43866&package_id=39721
; for Cygwin X, I guess you would have to compile Vim yourself if you want a
more recent version -- unless you switch to the above-mentioned native-Windows
distro. And if you do compile it yourself, pick a different GUI flavour such
as GTK2 or even Motif. You didn't say, BTW, _which_ flavour of gvim for Cygwin
X you were using: if it is none of Athena, Motif, GTK1 and GTK2, then what is it?
See also:
http://vim.wikia.com/wiki/Running_the_win32-version_of_Vim_from_cygwin
http://vim.wikia.com/wiki/Run_native-Windows_Vim_from_cygwin_without_a_wrapper
Note that these do not address the |clientserver| facility, since Win32 gvim
would, I suppose, not respond to X messages. But why not use
--remote-<something> from the cmd.exe prompt?
- Using a gvim for native-Win32 would also allow you to use the foreground()
function. With GTK2 for Cygwin I'm less sure: it might bring gvim to the front
relatively to other Cygwin apps, but would it work if you had other _Windows_
apps running too?
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
236. You start saving URL's in your digital watch.