This is most likely a bug with Windows [what isn't?] but I thought I'd
ask if anyone else experienced this issue, and found a work-around
[other than turning off X-Mouse].

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

My Questions:
I heard [somewhere] that the Windows version of vim has some external
application that gets called when attempting to execute external
applications. What is this, and is there another method [other than
using the Cygwin's version of gvim] that I could get gvim to change
file permissions?
Could I recompile gvim to incorporate this external application
directly into gvim, would that help?

Note #1: This mouse jumping also occurs sometimes when I use tag
jumping <ctrl>-] and <ctrl>-T
Note #2: I know I can use the Cygwin's version, however I've had copy/
paste issues between Windows and Cygwin, and while I have 10 instances
of gvim running, I get psst when X crashes!

Thank you for your expertise and understanding,
M

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

Reply via email to