On 07/01/09 15:34, Hugo Ahlenius wrote: > Hi, > > I have experienced an issue for quite some time, and now I finally > decided to deal with it - vim gets painfully slow accessing files > using UNC paths on Windows (paths that look like \\server\share\folder > \file). I have tested with Windows XP and Vista on several machines. > Using an old fashioned drive letter goes about x20 times faster - > otherwise vim freezes for long periods: 10-20 secs. > > I have tested with both vim 7.1 and 7.2 (including gvim, and both 32- > bit and 64-bit vim). I have tried without any customizations loaded, > and without swap-files, but no change. > > I can see that a few other people have seen the same problem, and that > there might be a fix/workaround in Cream (I tried to peek in the files > there, but couldn't find anything...) > > http://markmail.org/message/4d2wi7q6m3zgmszg#query:+page:1+mid:3425grt6sqtxxdrw+state:results > > http://www.archivum.info/comp.editors/2007-07/msg00053.html > > http://groups.google.com/group/vim_use/browse_thread/thread/307397da9c540bec/69fc832b7ef632d1?lnk=gst&q=unc#69fc832b7ef632d1 > http://www.mail-archive.com/[email protected]/msg01771.html > > Any tips on how to solve this?
The slowness might be due to something outside of Vim. Reading C:\Program Files\vim\vim72\vimrc_example.vim goes much faster than reading ftp://ftp.vim.org/pub/vim/patches/7.2/README because the former is on your computer and can be read extremely fast, the latter must be transmitted over a network with limited speed and an additional overhead to establish the connection. Even if the server is on your own computer, getting a file via a server involves much more overhead (before the first byte of the file can be read) than reading a file directly in C:\path\to\filename.ext format your hard disk. In addition, if Vim is set to put its swapfile in the same directory as the editfile (which is the usual default when that directory is writable), there is additional overhead if that file is at a remote location. In that case, see the 'swapfile' and 'directory' options about how to suppress using a swapfile for a given buffer, or placing the swapfile at a different (faster-accessed) location. Best regards, Tony. -- ARTHUR: Bloody peasant! DENNIS: Oh, what a give away. Did you hear that, did you hear that, eh? That's what I'm on about -- did you see him repressing me, you saw it didn't you? The Quest for the Holy Grail (Monty Python) --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
