专辑:Vim 练级手册

vim-airline 状态栏增强显示
先来看效果
Vim 插件 vim-airline 状态栏增强显示-LMLPHP

安装

Pathogen

1
2
$ cd ~/.vim/bundle
$ git clone https://github.com/bling/vim-airline

Vundle

修改 ~/.vimrc

1
Plugin 'bling/vim-airline'

在 Vim 中运行

1
:PluginInstall

配置

1
2
3
4
5
6
7
8
9
10
11
12
if !exists('g:airline_symbols')
let g:airline_symbols = {}
endif
let g:airline_left_sep = '▶'
let g:airline_left_alt_sep = '❯'
let g:airline_right_sep = '◀'
let g:airline_right_alt_sep = '❮'
let g:airline_symbols.linenr = '¶'
let g:airline_symbols.branch = '⎇'

" 是否打开tabline
let g:airline#extensions#tabline#enabled = 1 # 打开后,tabline和tmuxline都可以得到增强

airline 还可以支持很多插件如 virtualenv, tmux ,更多见 文档

03-16 16:05