nerdtree icon indicating copy to clipboard operation
nerdtree copied to clipboard

nerdtree locks VIM for ~60-90 seconds on launch

Open broofa opened this issue 15 years ago • 4 comments

Apologies for the ambiguous report to follow ...

My vim spontaneously started taking forever to launch. One day it was launching in < 1 second, the next it was taking 1-2 minutes. I experimented with disabling various plugins and narrowed it down to nerdtree. With nerdtree installed, long delays during launch. Without it, no delays.

I'm suspicious this may have something to do with the file/dir caching. I finally fixed the problem by opening NerdTree and changing the root directory to a subdirectory of my root, at which point I got the "caching large directory, this may take a while" message (or something to that effect.)

After the recache, VIM is back to normal - speedy launch with or without nerdtree active.

Where does nerdtree store it's cache files? If this happens again, I'd like to see what's stored there. Thx.

broofa avatar Jul 12 '11 18:07 broofa

nerdtree doesnt store any cache data on disk - only in memory. Just having nerdtree installed shouldnt screw your start up time like that - it doesnt actually do anything until you invoke it.

If it takes ages again, try hitting ctrl-c and it should tell you the line of vim script that it was interrupted on.

scrooloose avatar Jul 12 '11 20:07 scrooloose

tried ctrl-C / ctrl-D / ctrl-Z ... it wasn't interruptible.

broofa avatar Jul 12 '11 21:07 broofa

I have a somewhat similar problem. I'm working with Windows 7 64bits and GVim 7.4. My GVim locks for about the same time when opening a specific directory. I have a bookmark set on a specific path. When I try to open a specific subdirectory (which is called "install"), GVim hangs for a long time. If I am sufficiently patient, I finally can get to work.

The directory is not so big. It has 2 subdirectories and ~30 files. Half of them are executables. A quarter of them are .exe.

tharibo avatar Sep 26 '13 09:09 tharibo

This issue has been idle for a while, so I'm closing it. Feel free to reopen if necessary.

PhilRunninger avatar Dec 19 '17 14:12 PhilRunninger