安装 Ubuntu 16.04sudo apt-get install powerline
并添加到 .bashrc:
# Powerline
if [ -f /usr/share/powerline/bindings/bash/powerline.sh ]; then
source /usr/share/powerline/bindings/bash/powerline.sh
fi
并添加在~/.vimrc
:
" Powerline
set rtp+=/usr/share/powerline/bindings/vim/
" Always show statusline
set laststatus=2
" Use 256 colours (Use this setting only if your terminal supports 256 colours)
set t_Co=256
let g:Powerline_symbols = "fancy"
再次运行时,例如。vim ~/.vimrc
这里没有电力线好的状态:
https ://www.2daygeek.com/wp-content/uploads/2017/06/install-powerline-in-linux-4.png
我该如何解决这个问题才能让这条花哨的线条出现在底部?