Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set a maximum window size when zooming. #950

Merged
merged 1 commit into from
Feb 15, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions doc/NERDTree.txt
Original file line number Diff line number Diff line change
Expand Up @@ -702,6 +702,9 @@ the NERD tree. These settings should be set in your vimrc, using `:let`.
|NERDTreeWinSize| Sets the window size when the NERD tree is
opened.

|NERDTreeWinSizeMax| Sets the maximum window size when the NERD tree
is zoomed.

|NERDTreeMinimalUI| Disables display of the 'Bookmarks' label and
'Press ? for help' text.

Expand Down
2 changes: 1 addition & 1 deletion lib/nerdtree/ui.vim
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ function! s:UI.toggleZoom()
exec "silent vertical resize ". size
let b:NERDTreeZoomed = 0
else
exec "vertical resize"
exec "vertical resize ". get(g:, 'NERDTreeWinSizeMax', '')
let b:NERDTreeZoomed = 1
endif
endfunction
Expand Down