在vim窗口上设置默认高度

时间:2015-03-22 00:07:31

标签: vim python-mode

我正在使用带有vim的python-mode并希望从插件中获得水平分割显示17行内容。

在我的.vimrc中,我尝试过:

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

不幸的是,这并没有按照我计划任何建议的方式进行锻炼。

如果技术上可行的话,如果可能的话,使用最多17行的输入量进行缩放将是更优选的结果。

2 个答案:

答案 0 :(得分:0)

把它放在你的.vimrc

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

用于设置窗口大小

答案 1 :(得分:0)

你在找这个:

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

如果是这样,您可以根据需要更改数字。