文章目录
安装
字体
mkdir -p ~/.local/share/fonts
cd ~/.local/share/fonts && curl -fLo "Droid Sans Mono for Powerline Nerd Font Complete.otf" https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/DroidSansMono/complete/Droid%20Sans%20Mono%20Nerd%20Font%20Complete.otf
# 生成字体信息缓存
fc-cache -vf ~/.local/share/fonts/
Neovim
sudo apt install -y neovim
# 将vi指向neovim
sudo update-alternatives --config vi
SpaceVim
curl -sLf https://spacevim.org/cn/install.sh | bash -s -- --install neovim
cd ~/.SpaceVim/bundle/vimproc.vim && make
配置
测试终端是是否为真彩
$ echo $COLORTERM
truecolor
打开ubuntu默认终端->首选项->配置文件->自定义字体
有好几种,选自己喜欢的就好
参考
SpaceVim 入门指南
ubuntu安装字体
Colours in terminal
SourceCodePro Nerd Font Mono
RHEL7 Install SpaceVim+neovim for Python3.9