Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am using the NERDTree plugin for Vim. When using the s: open vsplit command, is it possible to resize the windows so that the file takes up a larger portion of the screen than the directory tree?

share|improve this question
    
Weird, so you are saying the directory tree has the same width as the document? How many documents do you have opened? If just one then you should use Enter, not s. –  phunehehe Jan 19 '12 at 12:00
add comment

2 Answers

You can set the default with of NERDTree through NERDTreeWinSize, e.g. let NERDTreeWinSize = 1 in .vimrc. You can adjust the size of the windows through the normal VIM commands, see :help window-resize.

share|improve this answer
add comment

Check your settings for equalalways and eadirection, as they dictate what size new windows start out as. If equalalways is set, then all new windows will be created equal in width, height, or both, depending on the value of eadirection.

Also, the NERDTree setting: NERDTreeWinSize defaults to a width of 31 characters, you may want to adjust that (after checking the equalalways and eadirection options in vim too)

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.