Ⅰ. 插件描述
vim statusline like spacemacsⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'taigacute/spaceline-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'taigacute/spaceline-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'taigacute/spaceline-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/taigacute/spaceline.vim
Ⅳ. 文档说明
# spaceline.vim
Vim Statusline Like Emacs Spaceline from ThinkVim
Feature
- We have airline, lightline, eleline, why make this plugin? They are great plugins, but they are limited and you can't set more separators.
- More separator combinations make the status bar look better, and spaceline handles combinations in different situations, very well. The combination of each area is very good in different situations.
- spaceline is faster than lightline and airline
Install
- Easy installed with a plugin manager like vim-plug
Plug 'taigacute/spaceline.vim'Required Plugins
- coc
- Depends on coc extensions
coc-git - vim-devicons
Mode
- spaceline provide some separator groups, the default group is
arrow
let g:spaceline_seperate_style= 'arrow'- normal mode
| group | ScreenShot |
| ------------ | -------------------------------------------------------------------------------------- |
| none |
|
| arrow |
|
| arrow-fade |
|
| curve |
|
| slant |
|
| slant-fade |
|
- syntaxcheck mode
| group | ScreenShot |
| ------------ | ------------------------------------------------------------------------------------- |
| none |
|
| arrow |
|
| arrow-fade |
|
| curve |
|
| slant |
|
| slant-fade |
|
- If you don't like too many symbols in the statusline, just set to
1(default is0)
let g:spaceline_line_symbol = 0Colorscheme
- Use this setting to change the spaceline colorscheme:
let g:spaceline_colorscheme = 'space'- base16_dark
- solarized_dark made by appelgriebsch

Custom
- You can customize every symbol in spaceline. There are some very useful settings, first, you should set the
g:seperate_modeto1
let g:spaceline_seperate_mode = 0- Then set seperators by these settings:
let g:spaceline_homemode_right = ''
let g:spaceline_filename_left = ''
let g:spaceline_filesize_right = ''
let g:spaceline_gitinfo_left = ''
let g:spaceline_gitinfo_right = ''
let g:spaceline_cocexts_right = ''
let g:spaceline_lineformat_right = ''
let g:spaceline_seperate_endseperate = ''
let g:spaceline_seperate_emptyseperate = ''Thanks
Donate

License
MIT

