how to change the font in text mode VIM (not gvim with GUI)

14,767

Solution 1

In console mode, Vim is using the current font of your terminal. So you have to find out on your system, how to modify it.

Solution 2

As mentioned in another answer, the choice of font in a terminal application is not chosen by vim, but rather the system settings. Assuming you want to change the font for the entire system's consoles, you can take a look at this link from the ArchLinux wiki. While this is specific to ArchLinux, you will find this article (and most of the articles in that wiki) to be informative and applicable to many flavors of GNU/Linux. If you are trying to change the font used by an X windows terminal application, such as gnome-terminal, sakura, or xterm, you will either need to consult that application's documentation or set the X windows terminal font. This link has some details on accomplishing that.

Share:
14,767
Ethan
Author by

Ethan

Updated on September 18, 2022

Comments

  • Ethan
    Ethan over 1 year

    I'd like to change the default font in VIM to Adobe Source Code Pro on a CentOS server (without desktop GUI). I've installed the OTF fonts in the package. How can I have the new monospace font set correctly?

    Thank you in advance.