Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [font]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
48 views

Charging file (and, font) display direction and start position across horizontal lines

I have seen a programmer post a picture of how in an IDE the left window had code displayed left to right and the right window had the code displayed right to left, and both were bound. I have posted ...
Joselin Jocklingson's user avatar
1 vote
1 answer
37 views

Why does Vim seem to be using a separate Arabic font from terminal font?

As I understand, it's not possible to change the font Vim uses within terminal since it inherits the font used by terminal. However, Vim seems to use a font different than the font used by terminal. ...
AvidSeeker's user avatar
1 vote
1 answer
23 views

Why does iterm show vim's logo instead of neovim when a buffer is opened in iterm2? [closed]

I'm curious if anyone knows how/why the logo uses vim instead of neovim's logo. I'd love to dig into and learn how to fix it. I apologize for the size of the pictures but this is what I mean. You can ...
user50568's user avatar
0 votes
1 answer
38 views

Text randomly shown in italics after being sent to a REPL with iron.nvim

Some parts of my code, apparently at random, are rendered in italics, and when I type it goes back and forth from italics to normal. Why is that and how I can avoid that? EDIT: Contrary to what I ...
robertspierre's user avatar
1 vote
1 answer
73 views

Ligature (combining characters) doesn't show in gVim

I use JetBrainsMono in my terminal and gVim. In my terminal, arrows and pipelines become one character visually (-> and |>) gVim has the same font but this same behavior doesn't happen. How can ...
Vinn's user avatar
  • 781
0 votes
0 answers
363 views

Certain Nerd Fonts does not display properly

On my Mac (M1), I am not able to get the symbols display properly with all Nerd Fonts excepting one I have installed Nerd Fonts as described in the documentation. Typically I use homebrew or have ...
jayr's user avatar
  • 33
1 vote
1 answer
42 views

How to use different font size for different highlight group?

There is a similar question gVim - Use different fonts using :highlight but no answer yet. In short, is it possible to apply different font size to different highlight group? For example, while normal ...
athos's user avatar
  • 195
1 vote
1 answer
587 views

How can I debug a nerd font not working on Windows + Neovim?

I am on Windows using AstroNvim. On other machines and installs, merely installing my nerd font is enough to make it work but this time and installation, all icons stay blank. What steps can I take to ...
samuelnihoul's user avatar
1 vote
1 answer
140 views

Devanagari in Neovim

It is an old issue, that Vim is not able to correctly display Devanagari (Sanskrit) ligatures as it is non GUI (emacs, gedit do well). In different forums it was discussed in the past (mostly before ...
Denis's user avatar
  • 21
0 votes
2 answers
268 views

Vim to Neovim switch Airline Nerd Font not recognised

I am using Vim with airline for many years. Today I decided to test NeoVim. While in Vim the airline with my Nerd Font works great, in NeoVim it seems to ignore the Nerd Font. NeoVim doesn't display ...
baxbear's user avatar
  • 314
0 votes
1 answer
156 views

How to save underlined text in Vim?

Ultimate goal is using underlined text in VIM (with st terminal). At this point I cannot paste underlined text in the st terminal (or VIM with st terminal). And text from text files with an underline ...
Peter P.'s user avatar
2 votes
0 answers
212 views

Cannot set guifont or guifontwide to installed font

OS and desktop environment info: uname -a Linux debian 5.10.0-18-amd64 #1 SMP Debian 5.10.140-1 (2022-09-02) x86_64 GNU/Linux sudo dpkg -s lxde | grep Version Version: 11 sudo dpkg -s lxappearance | ...
newview's user avatar
  • 301
1 vote
0 answers
117 views

Set fallback font in gvim

gVim provides an option, :h guifont, to set the font of the gui window. Although it accepts a comma-separated list of fonts, it selects the first available font. If a symbol doesn't exist in the ...
3N4N's user avatar
  • 5,754
1 vote
0 answers
102 views

font size for specific file type

this guy explains how to make a slide presentation in vim: "Giving a Text Based Slide Presentation in Vim without Plugins" https://invidious.osi.kr/watch?v=7fIR55kkTwc he defines file type ....
neverdimed's user avatar
0 votes
0 answers
120 views

the font changes when I change font size in gVim

I am sorry if this is a dumb question, I am a beginner in vim. I am trying to change my font size in gvim, I tried using set guifont=*, but only two sizes appears on the list 7 and 11 , and typing any ...
Mohammad Alshareef's user avatar
1 vote
0 answers
96 views

Vim interpretation of Unicode Private Use Areas and fallback fonts

If I download this file and open it with GVim, here is what I see: Now put the cursor on the "2" of "29" (after "Received" and before "December") and press g8. ...
robertspierre's user avatar
4 votes
1 answer
450 views

Display superscript of multiple characters to express a mathematical exponent

If in Vim I type CTRL-K followed by 1 and S, I can get a superscript such as 10¹. How though do I write something like 10 to the power of 18? Further info I ask this on the assumption that there must ...
markling's user avatar
  • 389
0 votes
0 answers
57 views

How to get syntax group name of a floating window

I would like to change the font from bold to normal in my floating windows in Vim 8.* I have this script here that gets the syntax group name of the item under cursor. However, this will not work for ...
dman's user avatar
  • 143
0 votes
0 answers
2k views

Increment or Decrement font in a neovim GUI?

I have crawled around forums and didn't found an answer which suits my needs. I want to use Neovim in a GUI, but not being able to change the font size on the fly with a keypress is a complete ...
Mao's user avatar
  • 11
1 vote
0 answers
273 views

gvim vs. xterm: what's wrong with my guifont?

The 10x20 is the (alias for) font I use with xterm -- and I like it. Both for shell-commands and vi/vim. Yet, when I use the :set guifont=10x20, I get "w i d e l y" spaced characters for ...
Mikhail T.'s user avatar
2 votes
0 answers
181 views

Minimum window width will not change when using specific filetype

With most filetypes, I can resize font and my GVIM application window just fine. However, when I open a specific file type (.tex), the font is easily changed, but I am unable to shrink the application ...
Zim's user avatar
  • 197
0 votes
1 answer
2k views

changing fonts in vimrc

The last pic is the info I got from Hacking Vim. How do I solve the error - the top pic is my vimrc.
user avatar
1 vote
2 answers
528 views

How to get emoji completion in markdown with `:<emoji>`, using neovim and coc

I'm sure that I've seen it so that one is able to use :<emoji and there's a pop up menu to select from, I can't seem to get this working though. I tried installing: https://github.com/junegunn/vim-...
baxx's user avatar
  • 1,025
1 vote
1 answer
1k views

changing font size leaves white bars in gvim

I wanted an easy way to resize the font in gvim (GTK), so I found this post: Quickly switch between fonts at runtime I created the following bindings based on that post: let g:fc_list = [ \ ...
Erik Lievaart's user avatar
2 votes
0 answers
161 views

Tell vim to treat character as full width

I am wondering if it is possible to tell vim to treat an individial code point in the unicode plain. I am aware of the ambiwidth option, but it does not help with my current task because the relevant ...
Max Xiong's user avatar
  • 121
3 votes
1 answer
2k views

How to change font style in Linux terminal?

I know this question has been asked many times, but what I've noticed is that the majority of them seem to be for gVim or Vim for Windows rather than Linux command line Vim. I'm just wondering how I'...
Sean's user avatar
  • 285
4 votes
0 answers
728 views

Why does Gvim not see my X11 fonts?

After going blind from using Gvim with non-bitmapped fonts, I tried to narrow my question from the previous attempts (1) and (2) (with older attempts going back years). Specifically, I wanted to find ...
user2153235's user avatar
1 vote
1 answer
219 views

Choose Gvim font that maps pixel-to-pixel with display?

I recently bought a Windows 10 laptop, TravelMate P2410-G2-M. The resolution is set to the native physical resolution of the display. However, my Gvim text displays with some pixel columns/rows ...
user2153235's user avatar
0 votes
0 answers
78 views

select font for tab headers in gvim

I wonder whether there is a way in gvim to select the font used for buffer names in tab headings (after using :tabnew). I know the guifont option, but this applies to the buffer editing area. ...
Filip Kadlec's user avatar
2 votes
1 answer
2k views

Where does gVim find font options for its `guifont` pick list?

In gvim, :set guifont=* brings up a GUI panel from which one can choose a font family, weight, slant, and size. Where does gVim find these fonts? I'm using Cygwin's X-windows. While the scheme for ...
user2153235's user avatar
1 vote
0 answers
1k views

gvim: List all options for guifont as text?

I know that I can use the GUI to navigate to the panel for setting guifont, and I can also issue :set guifont=*. Is there a way to list all options as text? I would like to capture them in a ...
user2153235's user avatar
1 vote
0 answers
401 views

gVim 8.2, display problem

I have a weird problem with VIM, both at work and at home (2 different computers): When I open a text in VIM, sometimes it is displaying it correctly, sometime not (I'd say 1 every 3 it works fine, ...
Alexis's user avatar
  • 11
4 votes
6 answers
8k views

Settings for the font in .vimrc are not working

Following the answers in I have tried many varieties of setting the font size and face in ~/.vimrc . None of them have any effect set guifont=Menlo:h12 set guifont=Monaco:h12 set guifont=Menlo\ ...
WestCoastProjects's user avatar
0 votes
0 answers
128 views

Some of unicode characters doesn't work in vim

I am using vim8 on windows 7. The problem is what whenever I try to paste a unicode character from somewhere else it doesn't work instead it shows. For example when I try to enter ⇛ It shows a ...
Maheer Ali's user avatar
5 votes
1 answer
862 views

Discover which fallback font was used in gvim

My &guifont is set using let &guifont="SauceCodePro NF 11,Source code pro 11". Calling set guifont? returns the full option, guifont=SauceCodePro NF 11,Source code pro 11. Is there a way to ...
silico-biomancer's user avatar
1 vote
0 answers
354 views

Terminus font broken in gVim on Fedora 31

I have just upgraded to Fedora 31 and see that my gVim with Terminus 12 font looks like this: Resetting the guifont option gives me a reasonable looking gVim back. How can I further diagnose this ...
Martin Ueding's user avatar
1 vote
2 answers
1k views

Font on Mac Catalina

I just now upgraded to Catalina on Mac (10.15) and immediately ran into an odd font behavior: when I open a file with MacVim (8.1.1722 (157)), the letters with tails (g, y, p...) have their tails cut ...
RadlyEel's user avatar
  • 141
2 votes
1 answer
6k views

How can I look up the current/default guifont reliably?

I'm trying to configure my guifont and I'd like to see the current setting so I can e.g. keep the same font but change the size. Is there a way to check the current font that works reliably, even if ...
Mu Mind's user avatar
  • 485
1 vote
0 answers
123 views

gvim adds one extra pixel spacing after each character?

For some reason, gvim is adding one extra pixel of spacing after each character. It almost seems similar to this question, but in my case gvim does use the correct font. I compared the same font in ...
Bart's user avatar
  • 133
8 votes
0 answers
484 views

gVim - Use different fonts using :highlight

I want to set gVim font size for Comment highlight group. When I set it, it does not do anything (the font is still the same but color changes). My .gvimrc: se guifont=Fira\ Mono\ Regular\ 10 hi ...
jiwopene's user avatar
  • 181
0 votes
1 answer
4k views

Setting default gVim font via `vimrc`, conditional on the operating system

I can place the following code into my _vimrc file on Windows 7/10 and the font will default to 'Consolas - size 11' when I launch gVim. if has("gui_running") if has("gui_gtk2") set guifont=...
Display name's user avatar
1 vote
1 answer
524 views

Requesting aliased :guifont rendering on Windows

Non-AA font rendering seems available everywhere except for Windows. In MacVim, this is possivle via noantialias. When using GTK2 front-end, the same can be achieved by adding antialias=false to the ...
Bass's user avatar
  • 113
2 votes
1 answer
283 views

How to make vim display ZWNJ characters correctly?

When I insert a ZWNJ character into text, vim displays <200c> instead of it. Is it possible to make vim to behave normally with this character, like GUI editors? Or is it possible to hide (and ...
alihardan's user avatar
  • 123
2 votes
1 answer
399 views

How to deal with accented latin characters on neovim

I'm trying to find out how to configure neovim in order to edit texts with accented latin characters. I usually set ambiwidth to double so Jananese symbols are displayed properly, but then neovim ...
tosh's user avatar
  • 63
2 votes
0 answers
101 views

Does Windows GUI Vim perform font substitution for glyphs unavailable in current font?

MacVim's documentation specifically (if obliquely) mentions font substitution, and I've found evidence online that GTK2 gVim does it too. But does Windows gvim? N.B. I'm already aware of the '...
Rich's user avatar
  • 32.1k
7 votes
0 answers
732 views

Unreadable display of Tamil characters in Vim

gVim seems to have problems displaying text in Tamil (and possibly other Indic languages), even when the font supports it. For eg., here's some text in Emacs and the same text in gVim (both under ...
Sundar R's user avatar
  • 781
0 votes
2 answers
761 views

Set gui's font in win7

For debian9, the setting in .vimrc take effect for gvim. set guifont=Bitstream\ Vera\ Sans\ Mono\ 14 For win7,the setting in _vimrc take no effect for gvim at all. I open gvim in my win7, :set ...
showkey's user avatar
  • 1,140
0 votes
2 answers
3k views

powerline font/symbol glitches

I'm new to vim and recently installed powerline plugin. I absolutely love using powerline with vim, but the symbols are not properly rendered. And I suspect I missed something here, can anyone help ???...
gopinathbalu's user avatar
0 votes
1 answer
1k views

gvim looks terrible on my RedHat. Unable to change font

When running gvim on my RedHat: Linux trex-06 3.10.0-514.el7.x86_64 #1 SMP Wed Oct 19 11:24:13 EDT 2016 x86_64 x86_64 x86_64 GNU/Linux NAME="Red Hat Enterprise Linux Server" VERSION="7.3 (Maipo)" ID=...
Elad Weiss's user avatar
3 votes
0 answers
3k views

Getting ligatures to work outside of comments

I'm playing around with Fira-Code and am having a weird issue with its ligatures. They seem to only work within the comments and not within my actual code. I have no idea what's causing this or how ...
Jello_Raptor's user avatar