1

Being a user of GUI editors (mostly Sublime Text) and one simple CLI editor (nano), and just having gVim (the GUI version of vim) installed on my Windows 10, I can't figure out how to adjust this powerful editor to my HiDPI (282.42 PPI eXtra High density according to calculator) display of size 15.6 inches with resolution 3840 x 2160 and scaling set on 250%?

It currently looks like this (scaled down to 40% of taken screenshot to reflect my display scaling, so it only looks blurry to you, but hopefully you get my point) - the text is so small that it is impossible to work with:

gVim on HiDPI

How to adjust gVim to my HiDPI display scaling on Windows 10?

2

On Windows, the configuration file of gVim is named:

_vimrc

It is placed in the installation directory, the default being:

C:\Program Files (x86)\Vim

To edit the file you first need to launch some text editor As Administrator.

And then open the above mentioned file.

Just add something similar to this:

if has('gui_running')
  set guifont=Consolas:h10
endif

where the important parts are both:

  1. The name of font, you may choose any suitable font except for the default, which is:

    Fixedsys

    as this font can only be sized to 4 or 5.

  2. h10 determines its size; in my case 10 is adequate.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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