Skip to content

Instantly share code, notes, and snippets.

@mikkeloscar
Created April 18, 2012 21:13
Show Gist options
  • Save mikkeloscar/2416601 to your computer and use it in GitHub Desktop.
Save mikkeloscar/2416601 to your computer and use it in GitHub Desktop.
Terminus patched for vim-powerline (gvim)
@mikkeloscar
Copy link
Author

This has only been tested with gvim.

All you need to do is install the Terminus font.

(form Archlinux you would do)

$ sudo pacman -S terminus-font

And then add this font to ~/.fonts/ and run fc-cache -vf

$ mv Terminus-Powerline.ttf ~/.fonts/
$ fc-cache -vf

Add Terminus to .vimrc

set guifont=Terminus\ 8

Now the speciel chars from Terminus-poweline will be used on the vim-powerline

Adding Terminus-powerline.ttf to .vimrc results in an ugly font for me.

@skanev
Copy link

skanev commented Apr 28, 2012

I believe it should be

set guifont=Terminus\ for\ Powerline\ 8

@mikkeloscar
Copy link
Author

That doesn't work for me. I get an ugly version of the Terminus font when doing that.

@skanev
Copy link

skanev commented Apr 29, 2012

Yup. Me too, but at least I get the characters.

Otherwise, Terminus looks neat, but it's the unpatched version, e.g. no characters. What about you?

@mikkeloscar
Copy link
Author

When I use the unpatched version from the repositories and I have the patched version in my ~/.fonts/ dir I get the special chars in the Powerline. This only works for Gvim though, not terminal vim. That might be do to terminal settings though.

This setup works on both my Desktop and my laptop both running Arch Linux.

@skanev
Copy link

skanev commented Apr 29, 2012

Fair enough. I was trying to get it working in Terminal, but failed. I don't insist on having fancy characters in terminal vim, since I rarely use it, so I gave up on it.

@hanschen
Copy link

I tried to set this as the default font in Konsole, but the text looked blurry so I gave up. However, when I opened vim in Konsole some time later (using default Terminus font), it just worked.

Not sure what did the trick - I followed the instructions above (on Arch Linux) except that I didn't add anything to my .vimrc. Here's a screenshot: http://imgur.com/Am1Us

@Massimo-B
Copy link

Is there something new to get the Terminus font working with Powerline? I have the ~/.fonts/Terminus-Powerline.ttf now and did fc-cache -vf ~/.fonts but anyway if using the default Terminus font or the Terminus-Powerline, the characters are invalid.

@Tritlo
Copy link

Tritlo commented Jan 28, 2013

Works for me, on Ubuntu and Raspian, for terminal tmux and vim.

@chosig
Copy link

chosig commented Feb 20, 2013

It's a badly made .ttf IIRC, it only looks good at size 12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment