Created
December 17, 2015 10:08
-
-
Save alepez/27d0699e62815363153f to your computer and use it in GitHub Desktop.
vim resize cmd height on window resize
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! ResizeCmdHeight() | |
if &columns < 120 | |
set cmdheight=2 | |
else | |
set cmdheight=1 | |
endif | |
endfunction | |
augroup ResizeCmdOnVimResized | |
autocmd! | |
autocmd VimResized * call ResizeCmdHeight() | |
augroup END |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment