On Nov 3, 4:14 pm, Bram Moolenaar <[EMAIL PROTECTED]> wrote:
> M. Brotherston wrote:
> > 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.
>
> That change would break anything that is interactive.  And may even
> crash your system for some old DOS commands (although Windows XP appears
> to work better these days).
>
> I've tried what you did, focus-follows-mouse in MS-Windows.  Gave up on
> it after too many applications failed to work properly.  I don't think
> there are more than a few people who use it.
>

Thank you Bram for your response. I'm hoping to move to a *nix OS
soon,
and then my insanity will settle. I've done a few more tests and
slight code
modifications, and got it working to my own satisfaction.

As I didn't get a whole lot of interest on the subject, my
expectations
for a community fix dropped considerably.

As you hear, I'm sure from everyone, this is the best text-editing
software
this side of the galaxy -- It's true!

Even though I use about 1/1000th of the functionality, this is the
only nuance
 I actually had to do something about [And I blame Windows 100%].

Though, I do wonder how many people shutdown other applications,
because they're used to whacking the ESC key!

Great job.... And thanks again to all who responded.

--
Mike

> --
> hundred-and-one symptoms of being an internet addict:
> 173. You keep tracking down the email addresses of all your friends
>      (even childhood friends).
>
>  /// Bram Moolenaar -- [EMAIL PROTECTED] --http://www.Moolenaar.net  \\\
> ///        sponsor Vim, vote for features --http://www.Vim.org/sponsor/\\\
> \\\        download, build and distribute --http://www.A-A-P.org       ///
>  \\\            help me help AIDS victims --http://ICCF-Holland.org   ///
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui