首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >NERDTree自动加载特定目录

NERDTree自动加载特定目录
EN

Stack Overflow用户
提问于 2011-04-27 15:34:49
回答 3查看 9.1K关注 0票数 10

我在windows.By中使用gvim默认驱动器加载C:\ drive.How作为默认。我喜欢将其更改为E:\ gvim以实现此目的?

每当我尝试使用:NERDTree命令启动NERDTree时,都会收到以下错误E492: Not an editor command: NERDTree

EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2011-04-27 16:50:54

我的vimrc文件中有以下代码

代码语言:javascript
复制
cd ~/documents
map <F2> :NERDTreeToggle<CR>
" open Nerd Tree in folder of file in active buffer
map <Leader>nt :NERDTree %:p:h<CR>

cd命令不特定于NerdTree。它只是在Vim启动时更改工作目录,这对我来说是合理的。

票数 22
EN

Stack Overflow用户

发布于 2014-09-26 22:51:30

从NERDTree帮助文件::NERDTree [<start-directory> | <bookmark>] *:NERDTree* Opens a fresh NERD tree. The root of the tree depends on the argument given. There are 3 cases: If no argument is given, the current directory will be used. If a directory is given, that will be used. If a bookmark name is given, the corresponding directory will be used. For example: > :NERDTree /home/marty/vim7/src :NERDTree foo (foo is the name of a bookmark)

票数 5
EN

Stack Overflow用户

发布于 2019-07-22 19:07:09

在我的vimrc文件中,我用这个autocmd vimenter * NERDTree G:\.The G:\来设置你的默认驱动器,但是,它只是NERDTree的工作目录。添加cd G:\,更改vim start work dir.Just,就像Jeromy Anglim所说的那样。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5800840

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档