Last active
December 11, 2015 02:08
-
-
Save tancnle/4527908 to your computer and use it in GitHub Desktop.
Font patching for Vim
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
< Yep, Gibbage is right >
\ ^__^
\ (oo)\_______
(__)\ )\/\
||----w |
|| ||
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Was line 4 supposed to be /tmp or line 5 supposed to be cd ~/tmp/vim-powerline...?