在 vim windows 上设置默认高度

Setting default height on vim windows

我正在使用 python-mode 和 vim 并希望插件的水平分割显示 17 行内容。

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

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

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

此外,如果技术上可行,将输入量缩放到最大 17 行将是更可取的结果。

把这个放在你的.vimrc

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

用于设置window大小

你在找这个吗:

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

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