Questions tagged [font]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
42 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 ...
0
votes
0answers
120 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 ...
1
vote
0answers
53 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 ...
0
votes
0answers
11 views

Is it possible to avoid a ligature from listchars?

I don't really know how to word the title correctly, but when I have listchars enabled with the precedes symbol set as <, when it's next to a = sign it becomes the "less than or equal to" ...
0
votes
0answers
43 views

How to write a fast auto completion for font names?

I am new to Vim. I recently installed the YouCompleteme (YCM) plugin, and realized it would be great if I could complete font-names. Let's say I type fn:, it should bring up a popup menu to help me ...
2
votes
0answers
84 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 ...
0
votes
1answer
65 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.
0
votes
2answers
216 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-...
1
vote
1answer
309 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 = [ \ ...
2
votes
0answers
36 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 ...
3
votes
1answer
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'...
3
votes
0answers
382 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 ...
1
vote
1answer
127 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 ...
0
votes
0answers
49 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. ...
2
votes
1answer
756 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 ...
1
vote
0answers
712 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 ...
1
vote
0answers
178 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, ...
2
votes
4answers
3k 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\ ...
0
votes
0answers
72 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 ...
3
votes
1answer
417 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 ...
1
vote
0answers
257 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 ...
1
vote
2answers
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 ...
1
vote
1answer
2k 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 ...
1
vote
0answers
69 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 ...
7
votes
0answers
197 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 ...
0
votes
1answer
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=...
1
vote
1answer
344 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 ...
2
votes
1answer
184 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 ...
2
votes
1answer
224 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 ...
1
vote
0answers
82 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.
5
votes
0answers
610 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 ...
0
votes
2answers
656 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 ...
0
votes
2answers
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 ???...
0
votes
1answer
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=...
3
votes
0answers
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 ...
4
votes
1answer
18k 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 ...
2
votes
1answer
193 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 ...
0
votes
0answers
220 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 ...
5
votes
1answer
286 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,...
7
votes
2answers
2k 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 ...
0
votes
2answers
739 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=...
1
vote
0answers
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 ...
4
votes
1answer
179 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&...
3
votes
1answer
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 ...
5
votes
1answer
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 ...
8
votes
1answer
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....
4
votes
1answer
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'...
12
votes
2answers
14k 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.
0
votes
1answer
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 ...
1
vote
0answers
658 views

Every line shows bold

Somehow every line in my Vim is bold. I'm using Consolas, which has a Bold typeface. Also, after leaving Vim, terminal is shown in Regular. The screenshot shows a small document that should have both ...