简体   繁体   English

vim NERDTree禁用缓存

[英]vim NERDTree disable caching

How to disable directory caching. 如何禁用目录缓存。 I need sometimes to edit files through sshfs and while going through directories I see: 有时我需要通过sshfs编辑文件,并且在浏览目录时看到:

NERDTree: Please wait, caching a large dir ...

Caching in the context of NERD_Tree means reading in the directory contents and storing it in a Vim variable, so that when you close and open the same directory again later, it happens instantly instead of taking noticeable time. 缓存在NERD_Tree的上下文中指读取目录内容并将其存储在一个Vim变量,所以,当你关闭并重新打开后在同一目录下,它发生的同时显着的时间瞬间来代替。

I'm afraid the only options you have is either 恐怕您唯一的选择是

  1. do not open directories that have many files or are on a slow file system 不要打开包含许多文件或文件系统较慢的目录
  2. recursively open all directories in NERD_Tree once when you start Vim; 启动Vim时,递归地打开NERD_Tree中的所有目录; this will take a very long time, but any navigation after that will be quick (until you restart Vim). 这将花费很长时间,但是此后的任何导航都将很快(直到重新启动Vim)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM