> > 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? > > 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.
I am open to a suggestion on how to script such a copy but, given the number of files I open and close on a daily basis, a manual solution will not work. Remembering to do a saveas before disconnecting will not work either partly because of how I work but mostly because I would never remember to re-save them back to the network. Soli Deo Gloria, Chris --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
