VIM normally creates a 'swapfile' in the same directory as the edited file (cp.
:help swap-file). This file creation can take some time on a network share. Try
launching VIM with the -n argument (no swapfile), e.g. gvim -n
\\<hostname>\share\myfile.txt. If this fixes the problem, you can selectively
disable swapfile creation for this network share (but keep swapfiles for local
files) by setting up an exception in your .vimrc file:
autocmd BufReadPre //<hostname>/* setlocal noswapfile
-- regards, ingo
/^-- Ingo Karkat -- /^-- /^-- /^-- /^-- /^-- /^-- http://ingo-karkat.de/ --
Also see
:help 'directory'
which you can use to store swapfiles for remote files locally for safety.
Ben.
Send instant messages to your online friends http://au.messenger.yahoo.com
Thanks for your insight, though. Very much appreciated.
-AJ
>
> I tried adding this setting to my _vimrc (on Windows), to no avail. I still
> get the massive delay.
>
> Thanks for your insight, though. Very much appreciated.
Try
gvim -u NONE -U NONE -X -n somefile
That'll start gvim up with no plugins, syntax, etc, no X clipboard, and no
swapfile writing.
Regards,
Chip Campbell