23
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

vimのnerdtreeにファイルアイコンをつける

23
Last updated at Posted at 2016-11-06

こんな感じになります

スクリーンショット 2016-11-06 14.57.12.png

参考にした記事

rictyにnerd-fontsのパッチを当てる(試行錯誤)
vimでatomのfile-iconsのような感じにする

導入方法

macOSでは,gitがopensslではなくSecureTransportを使用しているためビルドしてあげる

brew reinstall git --with-brewed-curl --with-brewed-openssl

fontforgeのインストール

brew install fontforge --use-gcc --without-python

rictyのインストール

brew tap sanemat/font
brew install --powerline --vim-powerline ricty
cp -f /usr/local/Cellar/ricty/4.0.1/share/fonts/Ricty-* ~/Library/Fonts/

nerd-fontのインストール

git clone https://github.com/ryanoasis/nerd-fonts
cd nerd-fonts
chmod 755 font-patcher
fontforge -script ./font-patcher ~/Library/Fonts/Ricty-Regular-Powerline.ttf --fontawesome --fontlinux --octicons --pomicons --powerline --powerlineextra
cp -f ./Ricty\ Regular\ for\ Powerline\ Nerd\ Font\ Complete.ttf ~/Library/Fonts/
fc-cache -vf

itermの場合

FontをRictyRegularforPowerlineNerdFontCompleteに変更する

.vimrc

vimでatomのfile-iconsのような感じにするを参照

最後に

素敵なvimライフを!

23
13
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
23
13

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?