2022 Developer Survey is open! Take survey.

Questions tagged [font]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
42 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 ...
user avatar
1 vote
0 answers
56 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. ...
user avatar
3 votes
1 answer
99 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 ...
user avatar
  • 211
0 votes
0 answers
46 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 ...
user avatar
  • 125
0 votes
0 answers
332 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 ...
user avatar
  • 11
1 vote
0 answers
123 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 ...
user avatar
2 votes
0 answers
127 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 ...
user avatar
  • 187
0 votes
1 answer
183 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
313 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-...
user avatar
  • 735
1 vote
1 answer
516 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 = [ \ ...
user avatar
2 votes
0 answers
52 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 ...
user avatar
  • 121
3 votes
1 answer
1k 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'...
user avatar
  • 215
3 votes
0 answers
469 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 ...
user avatar
1 vote
1 answer
146 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 ...
user avatar
0 votes
0 answers
53 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. ...
user avatar
2 votes
1 answer
987 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 ...
user avatar
1 vote
0 answers
907 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 ...
user avatar
1 vote
0 answers
221 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, ...
user avatar
  • 11
3 votes
4 answers
5k 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\ ...
user avatar
0 votes
0 answers
92 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 ...
user avatar
3 votes
1 answer
525 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 ...
user avatar
1 vote
0 answers
284 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 ...
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 ...
user avatar
2 votes
1 answer
3k 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 ...
user avatar
  • 475
1 vote
0 answers
80 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 ...
user avatar
  • 133
7 votes
0 answers
246 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 ...
user avatar
  • 171
0 votes
1 answer
3k 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=...
user avatar
1 vote
1 answer
409 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 ...
user avatar
  • 113
2 votes
1 answer
212 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 ...
user avatar
2 votes
1 answer
250 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 ...
user avatar
  • 63
1 vote
0 answers
84 views

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

MacVim specifically (if obliquely) mentions font substitution, and I've found evidence online that GTK2 gVim does too. But does Windows gvim? N.B. I'm already aware of the 'guifontwide' setting.
user avatar
  • 27.4k
5 votes
0 answers
646 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 ...
user avatar
  • 611
0 votes
2 answers
709 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 ...
user avatar
  • 820
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 ???...
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=...
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 ...
user avatar
5 votes
1 answer
21k views

Change a font in Vim/GVim in a simple way

I merely want to change a font in Vim/GVim. That's it. This doesn't work: font=Monaco\ 14 I've done a google search and I wonder, why is for such a elementary task there's no simple answer which ...
user avatar
  • 103
2 votes
1 answer
206 views

Some umlauts and extended Latin characters are shown as fullwidth

In Vim, I find each of ü and ß takes up fullwidth, i.e. twice as fat as ASCII characters. I am writing some German-learning notes, and find this to be very confusing, since I have been mistaken that ...
user avatar
0 votes
0 answers
234 views

Sign column font is cut off

I have an issue where the signs in my sign column are cut off in the middle (screenshot below). Changing the Guifont or the font size doesn't seem to matter. It looks fine in terminal neovim. I am ...
user avatar
5 votes
1 answer
317 views

Vim and gVim in Windows doesn't recognize Mongolian letters Өө and Үү

I'm trying to open and edit files with Mongolian text, written in Mongolian Cyrillic. In the cmd terminal and in powershell terminal if I choose Consolas font, everything is ok with Mongolian Cyrillic,...
user avatar
  • 71
7 votes
2 answers
3k views

gvim window looks bad

I don't know why my gvim windows looks like this in linux. Is there anything I need to add to my vimrc file in addition to this? execute pathogen#infect() syntax on filetype plugin indent on set ...
user avatar
0 votes
2 answers
764 views

Use visual mode to convert text to unicode bold formats?

How can I make it so when in visual mode, pressing b will toggle highlighted text to its bold unicode counterpart? This is what I mean by its Unicode counterpart: http://qaz.wtf/u/convert.cgi?text=...
user avatar
  • 825
1 vote
0 answers
1k views

Neovim Airline Powerline Fonts won't work

I installed Airline status line for Neovim and put the following line in my init.vim: let g:airline_powerline_fonts = 1 I also followed the instructions for installing powerline symbols from here ...
user avatar
4 votes
1 answer
189 views

Latin Capital Letter Thorn

I want to insert the unicode character Thorn Þ into my document. http://www.fileformat.info/info/unicode/char/00de/index.htm The character seems to be inserted when I type i<C-v>u00DE<esc&...
user avatar
  • 5,770
3 votes
1 answer
2k views

How to change Vim's :hardcopy printfont?

I would like to be able to print in other than Courier font using the :ha command. Investigating more closely, I found that it is documented that the Courier font is always used: - 'printfont' - The ...
user avatar
  • 4,005
5 votes
1 answer
2k views

gvim incorrect font (or encoding) in menu

I use 32bit gvim 7.4 on Win7 64bit CZ. I replaced the gettext and iconv libraries according to the guide on the vim website. I wanted to use utf-8 and have setup the guifont, encoding and fileencoding ...
user avatar
  • 151
8 votes
1 answer
1k views

How do I create buttons on the toolbar to increase and decrease font size?

Many systems offer + and - zoom buttons. Can someone please demonstrate how such two buttons can be emulated with gvim? This means that clicking the + button would increase the font size by one step....
user avatar
  • 723
4 votes
1 answer
2k views

Why do symbols look ugly in gvim?

I'm on Windows 7 with Vim 7.4, and Unicode symbols with the Hack font look awful. Am I missing a setting somewhere? Is there a way to improve this? For reference, this is gvim: and this is atom: I'...
user avatar
  • 311
12 votes
2 answers
15k views

How to zoom to text in VIM via shortcut?

I want to zoom in VIM, like Sublime text or Atom, using CTRL + & CTRL - and CTRL 0 for reset to default font-size.
user avatar
0 votes
1 answer
2k views

Permanently set Font size and font selection in vim (compiled from source)

I have searched both Stack Overflow and the Vi and Vim Stack Exchange sites and the few questions regarding font size in vim are regarding gvim and the guifont. However, I am using vim from command ...
user avatar