On 29/06/09 20:52, Russell, Christopher A wrote:
> How do I disable GVIM’s automatic timestamp checking? When I undock my
> laptop but want to continue editing a file I had open over the network.
> My problem is that GVIM frequently takes several minutes to realize that
> the file is no longer available and it does this every time I switch
> back to the GVIM window. While is attempting to check the timestamp, it
> is non-responsive. I realize that the base issue is with MS Windows but
> given that I have no workaround for that, how do I disable the on focus
> checktime call?
>
> Soli Deo Gloria,
>
> Chris
Why not fetch the file from the network first, then edit it locally, and
maybe later (after you're satisfied with the edits _and_ your connection
is back on) save the local editfile and upload it back?
You can do the download/upload outside of Vim (before and after the edit
session), or else use |:saveas| to save the file locally just before you
disconnect, and again to save the edited file to its proper remote
location after you reconnect.
If you forget, and disconnect without saving, Vim still has the file in
memory. Save it _immediately_ (as soon as you regain control) on the
local drive, and you'll be rid of those annoying hangs since you're now
editing a local file. Of course, don't forget to upload it back when the
connection is available again.
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
60. As your car crashes through the guardrail on a mountain road, your first
instinct is to search for the "back" button.
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---