I'm using the nerdtree plugin. I would like to know if we can change the
width of the sidebar which shows the contents of the root directory (the
NerdTree), either make it more wider or less wider. If so please let me know
how this can be accomplished.
Thank you.
--
View this message in context: http://vim.1045645.n5.nabble.com/NERDTree-plugin-side-bar-width-tp3747483p3747483.html
Sent from the Vim - General mailing list archive at Nabble.com.
jailed wrote:
>
> I figured it out. There is a line (:91) in the NERD_tree.vim file
> call s:initVariable("g:NERDTreeWinSize", 31)
> I changed this according to the value I needed. Not sure if this is a good
> way but worked for me.
you should better not modify the script, because your changes will get
lost when you get an update.
The function s:initVariable() is used by NERDTree to initialize a global
variable if it does not already exist. So the better way to set a new
width is to put something like
let g:NERDTreeWinSize = 40
in your ~/.vimrc.
Regards,
J�rgen
--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)
Thank you.
--
View this message in context: http://vim.1045645.n5.nabble.com/NERDTree-plugin-side-bar-width-tp3747483p3749358.html
I think this is a better way of doing. I could not figure it out earlier.
Thanks for letting me know.
Vladislav Rovda wrote:
>
> Also you can use shift + A to zoom (maximize - minimize) NERD tree window
>
Thats one way to do it, I tried with Ctrl-W < to reduce the width, but using
the shortcut every time, I'm too lazy for that.
--
View this message in context: http://vim.1045645.n5.nabble.com/NERDTree-plugin-side-bar-width-tp3747483p3885928.html