首頁  >  問答  >  主體

linux - vim插件powerline速度慢

PHP中文网PHP中文网2764 天前359

全部回覆(1)我來回復

  • 伊谢尔伦

    伊谢尔伦2017-04-17 16:19:36

    Powerline 的概念很有意思,所以GitHub上很多類似的專案。
    但是,Powerline 這個專案本身有點過時了。

    如果是喜歡這樣的風格,推薦兩個給你:

    • vim-airline: 開箱即用的類Powerline 插件,對許多第三方插件都做了良好適配

    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.

    • lightline.vim: 高自由度的類Powerline 插件, 需要自己動手對第三方插件做適配,作者有提供參考配置

    Why yet another clone of powerline?

    • vim-powerline is a nice plugin, but deprecated.

    • powerline is a nice plugin, but difficult to configure.

    • vim-airline is a nice plugin, but it uses too much functions of other plugins, which should be done by users in .vimrc.

    你的問題,其實就是這兩個插件要解決的:vimL實現,不需要調用外部進程
    畢竟對於一個頻繁刷新的狀態列來說,調用外部進程的開銷太大了。

    回覆
    0
  • 取消回覆