+OK
  • Home
  • About
  • Categories
  • Tags
  • Archives

Vim Tutorial (3) Theme and Font

Theme

Tomorrow

Solarized

Molokai

Put theme file in ~/.vim/colors and add set runtimepath+=~/.vim in ~/.vimrc.

Font

You need to make sure the font has already existed in the system. If not, you need to add TTF file.

Here I use Source-Code-Pro and Adobe Font Development Kit for OpenType (AFDKO) will be needed to build this font file. Double click FinishInstallOSX to install AFDKO and run $ ./build.sh in the downloaded font directory to build all TTF. They will be in the target folder.

Open Font Book in Mac and add all the TTF files into it by click +.

Then you need to add the following to .vimrc remember to use _ instead of space:

"set font and size
set guifont=Source_Code_Pro:h15

Share on: Twitter ❄ Facebook ❄ Google+ ❄ Email

So what do you think of it? Do I miss something? Leave your comments below...

Comments
comments powered by Disqus

Related Posts

  • Vim Tutorial (1) Start Using Vim
  • Vim Tutorial (2) Configure Vim
  • Vim Tutorial (4) Add Plugins by Vundle
  • Edit LaTeX with Vim
  • Enable Alt Key Macros in LaTeX-Suite

  • « Vim Tutorial (2) Configure Vim
  • Vim Tutorial (4) Add Plugins by Vundle »

Published

Oct 10, 2015

Last Updated

Oct 10, 2015

Category

Coding

Tags

  • font 1
  • mac 5
  • theme 2
  • vim 7

Contact

  • Creative Commons License
    "+OK" by Joe is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.
  • Powered by Pelican. Theme: Elegant by Talha Mansoor