dofy/7th-vim

还是字体乱码的问题,安装了但没有生效呢

Closed this issue · 3 comments

macOS 下按照 https://github.com/ryanoasis/nerd-fonts 的brew安装方法

brew tap caskroom/fonts
brew cask install font-hack-nerd-font

安装后文件列表文件名左侧还是乱码

image

dofy commented

要设置一下 terminal 的字体

terminal.app设置Nerd字体后,可以了。
iTerm2.app 需要同时设置 Non-ascii font。
image

MacVim.app 需要在.vimrc.local中设置字体:

set guifont=Knack\ Nerd\ Font:h12
dofy commented

Warning
caskroom/fonts was moved. Tap homebrew/cask-fonts instead.
and
brew cask is no longer a brew command. Use brew <command> --cask instead.

Note

brew tap homebrew/cask-fonts
brew install font-hack-nerd-font --cask