如何打开左侧的NERDTree?

时间:2019-05-11 13:57:58

标签: vim nerdtree

我是vim的新手,正尝试使用NERDTree。好吧,我想我已经成功安装了它,但是每次我打开NERDTree时,它都会在窗口的右侧打开,如下所示。我希望它在默认情况下在左侧打开,但我不知道如何打开。默认情况下如何打开窗口左侧的NERDTree?

我试图将let g:NERDTreeWinPos = "LEFT"let g:NERDTreeWinPos = "left"放入vimrc文件中,但是没有用。

enter image description here

有关更多详细信息,我的.vimrc代码如下所示 我使用终极vim。'

set nocompatible              " be iMproved, required
filetype off                  " required

" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required
Plugin 'VundleVim/Vundle.vim'

" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required

let g:NERDTreeWinPos = "LEFT"

set runtimepath+=~/.vim_runtime
set showcmd
set number

source ~/.vim_runtime/vimrcs/basic.vim
source ~/.vim_runtime/vimrcs/filetypes.vim
source ~/.vim_runtime/vimrcs/plugins_config.vim
source ~/.vim_runtime/vimrcs/extended.vim

try
source ~/.vim_runtime/my_configs.vim
catch
endtry

1 个答案:

答案 0 :(得分:0)

如果尚未回答,请访问~/.vim_runtime/vimrcs/plugins_config.vim文件并更改NERDTree在该文件中的位置。