1

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.

hicksca
  • 65
  • 7

2 Answers2

3

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

imbichie
  • 1,510
  • 3
  • 13
  • 23
  • Thanks for the idea but this doesn't really achieve the result I'm looking for I orginally had in my .vimrc the following: set winheight=9999 set winminheight=0 But this sets the overall hight of each windows and effect to many other plugins like NERDTree and Docs (for python-mode). Plus when I split horizontally these windows are sized incorrectly. – hicksca Mar 24 '15 at 11:55
0

Are you looking for this:

let g:pymode_quickfix_minheight = 3
let g:pymode_quickfix_maxheight = 6

if so, you can change the number based on your need.

dlmeetei
  • 9,905
  • 3
  • 31
  • 38