我在windows.By中使用gvim默认驱动器加载C:\ drive.How作为默认。我喜欢将其更改为E:\ gvim以实现此目的?
每当我尝试使用:NERDTree命令启动NERDTree时,都会收到以下错误E492: Not an editor command: NERDTree
发布于 2011-04-27 16:50:54
我的vimrc文件中有以下代码
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启动时更改工作目录,这对我来说是合理的。
发布于 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)
发布于 2019-07-22 19:07:09
在我的vimrc文件中,我用这个autocmd vimenter * NERDTree G:\.The G:\来设置你的默认驱动器,但是,它只是NERDTree的工作目录。添加cd G:\,更改vim start work dir.Just,就像Jeromy Anglim所说的那样。
https://stackoverflow.com/questions/5800840
复制相似问题