Ⅰ. 插件描述
Beautify statuslineⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/statusline-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/statusline-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/statusline-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/statusline.vim
Ⅳ. 文档说明
This script is inspired by the light2011 colorscheme (vimscript#3714).
Thanks for xiaohuyee to give us such a pretty gift.
He did most of the work. I just stood on his shoulders.
I am looking for a beautiful vim statusline for a long time but found nothing until I met the light2011.
Last night I spent several hours to beautify my statusline, it looks good.
And now I give it to you.
It is beautiful on gvim.
However if you use vim on console, it is not so beautiful, but still useful.
Screenshot
http://vimer.1063083.n5.nabble.com/beautiful-vim-statusline-td4777850.html
Tutorial
Download it, use it, and change it.
It is good on my laptop, but maybe bad on yours.
Perhaps you should edit the source code to suit your vim.
When you edit it, do not erase trailing-blanks.
If you use light2011 colorscheme, you'd better comment its statusline codes.
When you switch colorscheme, the background of statusline changes too.
You should source statusline.vim by manual to recover it.
Like:
:colo underwater
:source c:/vim/vimfiles/plugin/statusline.vim
or
:source ~/.vim/plugin/statusline.vim
In fact, you can use autocmd to simplify this:
autocmd! ColorScheme * source c:/vim/vimfiles/plugin/statusline.vim
or
autocmd! ColorScheme * source ~/.vim/plugin/statusline.vim