Skip to content

Instantly share code, notes, and snippets.

@tancnle
Last active December 11, 2015 02:08
Show Gist options
  • Save tancnle/4527908 to your computer and use it in GitHub Desktop.
Save tancnle/4527908 to your computer and use it in GitHub Desktop.
Font patching for Vim
brew install fontforge
mkdir ~/.fonts
wget -P ~/.fonts https://gist.github.com/baopham/1838072/raw/5fa73caa4af86285f11539a6b4b6c26cfca2c04b/Monaco%20for%20Powerline.otf
git clone https://github.com/Lokaltog/vim-powerline.git /tmp/vim-powerline
cd /tmp/vim-powerline && fontforge -script fontpatcher/fontpatcher ~/.fonts/Monaco+for+Powerline.otf
echo -e "set encoding=utf-8\nset guifont=Monaco-Powerline\nlet g:Powerline_symbols = 'fancy'" >> ~/.vimrc
# And make sure you install Monaco-Powerline.otf on Mac and use that font for your Terminal/iTerm app as well
@gibbage
Copy link

gibbage commented Oct 30, 2013

Was line 4 supposed to be /tmp or line 5 supposed to be cd ~/tmp/vim-powerline...?

@stevenocchipinti
Copy link


< Yep, Gibbage is right >


    \   ^__^
     \  (oo)\_______
        (__)\       )\/\
            ||----w |
            ||     ||

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