1

As title. Say I have two vertical splits, and I only want to increase the font size of the right split. Is this possible? If so:

  1. What's the API to get the current font size?
  2. What's the API to set the current font size?

Thanks in advance!

1 Answer 1

2

Say I have two vertical splits, and I only want to increase the font size of the right split. Is this possible?

Unfortunately no, this is impossible. Vim is at heart a terminal based application where historically only a single font (plus fallbacks and bold and italics) could be used. GUI vim uses the same approach -- it only supports a 'single' font.

The "API" is only available for GUI vim with an option guifont you can set and get.

It is not ideal, but one can use it to create mappings to increase/decrease font size for the whole GVim (not per split window):

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.