You are not logged in.

#1 2025-06-10 05:23:16

Ep19Sc0NGE
Member
Registered: 2025-06-10
Posts: 4

[SOLVED] Changing font in my Vim text editor (DWM/X11)

Hi, I need your help! I am trying to set up a specific font and font size in my ~/.vimrc file using

set guifont=Monospace:h15

command, but nothing is changing no matter if I put 12 or 20 in the size column. I've tried several fonts also, but it seems like changes just not apply - after writing the file and reopening it, size of the font and the font itself stays the same. Also

:set guifont=*

command doesn't show me anything. Here is my .vimrc file:

set nocompatible
filetype off

set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()

Plugin 'VundleVim/Vundle.vim'
Plugin 'nyngwang/nvimgelion'

syntax on

set termguicolors

set guifont=Monospace:h20

call vundle#end()
filetype plugin indent on

au BufNewFile, BufRead *.py
    \ set tabstop=4
    \ set softtabstop=4
    \ set shiftwidth=4
    \ set expandtab
    \ set autoindent
    \ set fileformat=unix

set laststatus=2

set wrap

set encoding=utf-8

vnoremap <C-c> :w !xclip -i -sel c<CR><CR>

How to set up a specific font in my Vim configuration file? Thank you for your help.

Last edited by Ep19Sc0NGE (Yesterday 06:25:02)

Offline

#2 2025-06-10 06:12:25

bulletmark
Member
From: Brisbane, Australia
Registered: 2013-10-22
Posts: 697

Re: [SOLVED] Changing font in my Vim text editor (DWM/X11)

vim runs in your terminal so just uses your terminal font. `guifont` sets the font for gvim so your setting should work there.

Offline

#3 Yesterday 06:25:41

Ep19Sc0NGE
Member
Registered: 2025-06-10
Posts: 4

Re: [SOLVED] Changing font in my Vim text editor (DWM/X11)

Yeah, thank you very much, now i understand that.

Offline

Board footer

Powered by FluxBB