On 16 Feb 2009, at 15:37, Dominique Pelle wrote: you don't
> inform vim to use another directory:
>
> :help 'directory'
> :help 'backupdir'
>
Ah ha! Setting backupdir to a local folder helped a lot.
> Maybe you have some script or autocmd which
> keeps accessing
> the file system?
>
> First thing to do, is to check whether it's slow with "vim -u NONE".
> If it's fast, then you can try to comment things out in your ~/.vimrc
> until you find out what it is.
>
> Also, I don't know whether OS X has the equivalent of strace.
> On Linux, I can run...
>
> $ strace vim foo.c 2> strace.log
>
> Then in another terminal, I do:
>
> $ tail -f strace.log
>
> ... and I see all systems calls that Vim performs. If OS X has this
> too,
> then you can find what kind of system calls access the remote file
> system and how often. It should give you previous hints.
>
> I did it on my machine and it was interesting so see that I had an
> autocmd, recently added in my ~/.vimrc, which did a stat64 every
> few seconds:
>
> :au CursorHold,CursorHoldI * exe bufnr("") . 'checktime'
>
> I commented it out since I don't really need it.
>
> -- Dominique
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---