Friday, June 1, 2012

RE: Too many instances of vim?

Shawn wrote:
> I have used vim for several years now, but recently vim has
> become painfully slow when it writes to disk. I am checking
> into other possibilities, but one reason for this (in my
> mind) might be that I have too many instances of vim up at
> the same time. I have 48 GB of memory, so I don't think that
> it is a memory issue, and my files are relatively small (~500
> lines), so I am wondering if there is some central vim
> manager that gets overworked if I keep pulling up vim
> instances and not closing the others. Does this make sense?
> If so, is there anything I can do about it other than closing
> the files that I am keeping up? If not, any other ideas as
> to why it might be so slow? I just saved a 650 line file, it
> took 34 seconds.

In addition to what Ben said, is the network in use at all
during this? For example, are the files Vim is working on
accessed over a network, or (if Windows) is your profile
or home directory accessed over the network?

Possibly you have some plugin that is doing silly things? Use
:scriptnames to see what is loaded, and temporarily remove
anything not essential. If possible, start Vim like this:

vim -N -u NONE -i NONE (files)

Or use gvim in above. If it is now fast, one of your plugins is
responsible. One plugin I know of that shares data between
instances is mru.vim. I have never seen it cause a slowdown, but
I suppose if you had hundreds of Vim instances it might.

BTW using gvim with tab pages is often better than multiple
instances.

John

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment