vim winminwidth "E36 Not enough room" error -


i'm having problems setting 'dynamic' window width in .vimrc. doing winheight works fine. here's code:

" dynamic current window sizing tbot art of vim set winheight=9 set winminheight=9 let &winheight = &lines - 9 set winwidth=40 set winminwidth=40       " e36 not enough room here let &winwidth = &columns - 40 

the winheight settings work great; winwidth settings error.

however, works once i'm in vim; have 3-7 related windows open in single tab , dynamic resizing means have lots of space horizontally , vertically work in.

i can reproduce this, , tried work around via :autocmd vimenter , other such tricks, failed.

if works out in end, can suppress error prepending :silent! command.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -