Keep window size when resizing font in MacVim

1

When changing the font size in MacVim on OSX (Cmd +,Cmd -), the window is resized as well. Is there a setting that makes MacVim keep its window's size, when the font is resized?

mollerhoj

Posted 2014-08-16T14:39:39.350

Reputation: 111

Answers

1

Use set guioptions+=k. See https://github.com/macvim-dev/macvim/issues/1006. Probably should be the default but either way the option will work.

ychin

Posted 2014-08-16T14:39:39.350

Reputation: 11

Thank you @ychin! – Johnny Utahh – 2020-02-20T18:48:29.250

1

The window size in MacVim is based on "number of lines and number of columns to be displayed"; if you change the font and font size, those lines and columns need less or more space and the window size is adjusted accordingly.

You can specify the number or lines and columns MacVim will show with set lines=nn and set columns=mm in ~/.vimrc to get a starting window size of your liking, but - obviously - when you change the font or font size "on the fly", the window size will also change again.

FLIR31207

Posted 2014-08-16T14:39:39.350

Reputation: 101

Has this been solved with any recent version of MacVim? – Johnny Utahh – 2020-02-20T13:52:51.650