I posted this thread originally on vim_use, but I the only 'solution'
I found so far was to modify the source code. So here goes:

[Quoted from original post]
Situation. I downloaded and installed 'TweakUI' for Windows XP. I
turned on the 'X-Mouse :: Activation Follows Mouse' feature, and
selected on 'General :: Focus :: Prevent applications from stealing
focus". - I'm trying to get the closest feel I can to running Linux,
without actually running Linux [requirement]

I use the Windows Version of Vim [downloaded from the vim.org website]
VIM - Vi IMproved 7.1 (2007 May 12, compiled May 12 2007 14:19:39)
MS-Windows 32 bit GUI version with OLE support
Compiled by [EMAIL PROTECTED]

And have a mapping setup for interaction with Cygwin in my .vimrc:
if has("win32")
  set shellslash
  " F2  -- map F2 key to read-write file (autoload should be set for
this!)
  map <silent> <f2>  :silent! !chmod u+w `cygpath "%"`<CR>
  " F3  -- map F3 key to read-only file (autoload should be set for
this!)
  map <silent> <f3>  :silent! !chmod u-w `cygpath "%"`<CR>
else
  " F2  -- map F2 key to read-write file (autoload should be set for
this!)
  map <silent> <f2>  :silent! !chmod u+w %<CR>
  " F3  -- map F3 key to read-only file (autoload should be set for
this!)
  map <silent> <f3>  :silent! !chmod u-w %<CR>
endif

Now every time I press F2/F3 to change permissions of the files, the
mouse jumps half-way across my screen, and I lose focus on Vim. I
think a new window appears/disappears on the screen [like a flicker],
taking the mouse for a ride.
I use this method because I have set up my cpoptions with the value
of: +=W
[End-Quote]

The only solution I found at this time, was to modify the call to
CreateProcess in os_win32.c and change the parameter "Creation Flags"
to use CREATE_NO_WINDOW instead of CREATE_NEW_CONSOLE. My question is
could this flag be changed without affecting existing functionality,
or else somehow be made more dynamic so that in my situation [WinXP +
XMouse] things would 'just work'? I'm fine with 'hacking' my own copy
of gvim with this change to stop my own insanity, but I'd really like
to know if this could somehow be integrated into the main stream?

Thank you for your understanding.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui