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 bind s that also tmux, bash, zsh, and others.
Powerline 的概念很有意思,所以GitHub上很多類似的專案。
但是,Powerline 這個專案本身有點過時了。
如果是喜歡這樣的風格,推薦兩個給你:
vim-airline: 開箱即用的類Powerline 插件,對許多第三方插件都做了良好適配
lightline.vim: 高自由度的類Powerline 插件, 需要自己動手對第三方插件做適配,作者有提供參考配置
你的問題,其實就是這兩個插件要解決的:純
vimL
實現,不需要調用外部進程畢竟對於一個頻繁刷新的狀態列來說,調用外部進程的開銷太大了。