Vim with Powerline

前言

自從我開始用Linux當主要的console後就開始騷包的準備大量導入Powerline

參考文獻

Powerline on Linux: An Integration Guide

Pre-Start

vim

1
2
# Arch
sudo pacman -S vim

Powerline

1
2
# Arch
sudo pacman -S powerline

Setting

1
2
# Manjaro
cp /usr/share/vim/vim90/vimrc_example.vim ~/.vimrc

在~/.vimrc內加上

1
2
3
4
5
" Powerline Setting
set laststatus=2 " Always display the status bar
python3 from powerline.vim import setup as powerline_setup
python3 powerline_setup()
python3 del powerline_setup

Manjaro裡面不用去定義powerline_cmd="py3"

效果圖

結論

就是騷而已