When i am using nerdtree to browse my file, it always happened to make NerdTree to resize to full fill current window, and i don’t know how to change to its default width. Is there a method to make the size of nerdtree window fixed? Or reset the window size to default?
Share
it is strange that you have this issue, but the widow width seems to be set via
g:NERDTreeWinSizevariable and should be 31 (you can see this in the plugin source (see line 44 here: https://github.com/scrooloose/nerdtree/blob/master/plugin/NERD_tree.vim)obviously, setting this variable in the source script will work, but there should be better ways of setting it in your
.vimrc.have you tried toggling the nerdtree window using
A? does that set the correct window size?