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

Customized zoom size #924

Closed
HGYGO opened this issue Nov 29, 2018 · 0 comments
Closed

Customized zoom size #924

HGYGO opened this issue Nov 29, 2018 · 0 comments

Comments

@HGYGO
Copy link

HGYGO commented Nov 29, 2018

Environment

  • Operating System: ubuntu 16.04
  • Vim version :version: vim8.1
  • NERDTree version git rev-parse --short HEAD:
  • NERDTree settings applied in your vimrc, if any:

Process

  1. Zoom NERD tree window

Current Result

Zoom will take almost full screen

Expected Result

Customize zoom size by global variable in vimrc

Screenshot(s)

Possible Fix

add g:NERDTreeZoomSize to ui.vim

function! s:UI.toggleZoom()
if exists("b:NERDTreeZoomed") && b:NERDTreeZoomed
let size = exists("b:NERDTreeOldWindowSize") ? b:NERDTreeOldWindowSize : g:NERDTreeWinSize
exec "silent vertical resize ". size
let b:NERDTreeZoomed = 0
else
exec "vertical resize ". g:NERDTreeZoomSize
let b:NERDTreeZoomed = 1
endif
endfunction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant