eleline.vim


Ⅰ. 插件描述

:herb: Another elegant statusline for vim

Ⅱ. 基本信息

创建日期:  2017-03-16
使用用户:  19
Github星:  193
插件作者:  Liu-Cheng Xu

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'liuchengxu/eleline-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'liuchengxu/eleline-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'liuchengxu/eleline-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/liuchengxu/eleline.vim

Ⅳ. 文档说明

# eleline.vim

Another elegant statusline for vim, extracted from space-vim.

Currenctly supported plugins:

If you're using newer vim or neovim, i.e., async API is available, eleline will probe the git branch info asynchronously instead of depending on vim-fugitive, making your vim never slower due to the statusline.

Installation

This plugin can be installed with a varity of plugin managers, e.g., vim-plug:

Plug 'liuchengxu/eleline.vim'

Don't forget to set laststatus=2 to always display statusline.

Usage

It's encouraged to fork eleline.vim to make your own custom vim statusline.

Customization

  • Ordinary font by default

screenshot

  • Powerline font

If the powerline font is available, i.e., let g:airline_powerline_fonts = 1 or let g:eleline_powerline_fonts = 1:

screenshot

  • Keep it simpler

Only show the buffer number, window number, filename and info from the plugins via let g:eleline_slim = 1:

screenshot

See :h CTRL-G when you need more info.

License

MIT

添加新评论