I'll be fine

技術ブログ

【Linux Mint, vim】vim-powerlineにフォントRictyのパッチをあてる

$ cd
$ apt-get install fontforge
$ apt-get install libxml2
$ apt-get install libpng12
$ mkdir .fonts
$ git clone git@github.com:yascentur/Ricty.git
$ cd Ricty
$ wget http://levien.com/type/myfonts/Inconsolata.otf
$ wget -O mig1m.zip 'http://sourceforge.jp/frs/redir.php?m=jaist&f=%2Fmix-mplus-ipa%2F57240%2Fmigu-1m-20121030.zip'
$ unzip mig1m.zip
$ rm mig1m.zip
$ sh ricty_generator.sh auto
$ cp Ricty-Regular.ttf Ricty-Bold.ttf ~/.vim/bundle/vim-powerline/fontpatcher/
$ cd ~/.vim/bundle/vim-powerline/fontpatcher
$ fontforge -lang=py -script fontpatcher Ricty-Regular.ttf
$ fontforge -lang=py -script fontpatcher Ricty-Bold.ttf
$ cp -f Ricty* ~/.fonts
$ fc-cache -vf
terminal>編集>プロファイルの設定>全般
フォントをRicty
.vimrcに以下を追記
let g:Powerline_symbols = 'fancy'
set t_Co=256
矢印が文字化けしている場合は
let g:Powerline_symbols = 'compatible'