Search code examples
vimpython-mode

Setting default height on vim windows


I am using python-mode with vim and want to have the horizontal splits from the plugin show 17 lines of content.

In my .vimrc I've tried:

autocmd BufEnter __run__ :resize (the difference of the current default.)

Unfortunately this didn't workout the way I'd planned any suggestions.

Also if possible scaling with the amount of input up to the 17 line max would be the more preferred outcome, if technically possible.


Solution

  • put this in your .vimrc

    set lines=17 " for height of the window
    set columns=80 " for width of the window
    

    for setting the window size