There's already powerline, why yet another statusline?
100% vimscript; no python needed.
What about vim-powerline?
vim-powerline has been deprecated in favor of the newer, unifying powerline, which is under active development; the new version is written in python at the core and exposes various bindings such that it can style statuslines not only in vim, but also tmux, bash, zsh, and others.
Powerline 的概念很有意思,所以GitHub上很多类似的项目。
但是,Powerline 这个项目本身有点过时了。
如果是喜欢这样的风格,给你推荐两个:
vim-airline: 开箱即用的类Powerline 插件,对很多第三方插件都做了良好适配
lightline.vim: 高自由度的类Powerline 插件, 需要自己动手对第三方插件做适配,作者有提供参考配置
你的问题,其实就是这两个插件要解决的:纯
vimL
实现,不需要调用外部进程毕竟对于一个频繁刷新的状态栏来说,调用外部进程的开销太大了。