spaceline.vim


Ⅰ. 插件描述

vim statusline like spacemacs

Ⅱ. 基本信息

创建日期:  2019-02-05
使用用户:  1
Github星:  62
插件作者:  TextEditor

Ⅲ. 安装方法

使用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

Mode

  • spaceline provide some separator groups, the default group is arrow
let g:spaceline_seperate_style= 'arrow'
  • normal mode

| group | ScreenShot |
| ------------ | -------------------------------------------------------------------------------------- |
| none | image |
| arrow | image |
| arrow-fade | image |
| curve | image |
| slant | image |
| slant-fade | image |

  • syntaxcheck mode

| group | ScreenShot |
| ------------ | ------------------------------------------------------------------------------------- |
| none | image |
| arrow | image |
| arrow-fade | image |
| curve | image |
| slant | image |
| slant-fade | image |

  • If you don't like too many symbols in the statusline, just set to 1 (default is 0)
let g:spaceline_line_symbol = 0

Colorscheme

  • Use this setting to change the spaceline colorscheme:
let g:spaceline_colorscheme = 'space'

Custom

  • You can customize every symbol in spaceline. There are some very useful settings, first, you should set the g:seperate_mode to 1
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


appelgriebsch


rafi

Donate

License

MIT

添加新评论