8000 GitHub - fdustin/spaceline.vim: vim statusline like spacemacs
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fdustin/spaceline.vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

spaceline.vim

Vim Statusline Like Emacs Spaceline from ThinkVim

22

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
  • syntax highlight in spaceline
  • middle color of spaceline will match your colorscheme background color (now only default colorscheme space support)
  • support scroll bar

Install

  • Easy installed with a plugin manager like vim-plug
Plug 'hardcoreplayers/spaceline.vim'
" Use the icon plugin for better behavior
Plug 'ryanoasis/vim-devicons'

Options

  • spaceline provide some separator groups, the default group is arrow
let g:spaceline_seperate_style= 'arrow'
group ScreenShot
none none
arrow arrow
arrow-fade arrow-fade
curve curve
slant slant
slant-fade slant-fade
slant-cons slant-cons
  • g:spaceline_disable_file_icon set 1 to disable filetype icon,default is 0.if you don't like use the ryanoasis/vim-devicons plugin,you need set this option to 1.

  • Use this setting to change the spaceline colorscheme,now builtin colorscheme space,one

let g:spaceline_colorscheme = 'space'
  • g:spaceline_custom_vim_status custom vim status display.default is
 {"n": "🅝 ","V":"🅥 ","v":"🅥 ","\<C-v>": "🅥 ","i":"🅘 ","R":"🅡 ","s":"🅢 ","t":"🅣 ","c":"🅒 ","!":"SE"}
  • g:spaceline_custom_buffer_number custom buffer number display value is list

  • g:spaceline_diagnostic_tool set your diagnostic plugin. default is coc,other value nvim_lsp, ale

  • g:spaceline_diagnostic_errorsign set the error sign. default is

  • g:spaceline_diagnostic_warnsign set the warn sign. default is

  • g:spaceline_diagnostic_oksign set the ok sign. default is

  • g:spaceline_git_branch_icon set the git branch icon default is empty

  • g:spaceline_custom_diff_icon custom diff icon. default is

 ['','','']
  • g:spaceline_diff_tool set the git diff tool default is coc, other value is git-gutter need vim-gitgutter plugin

  • g:spaceline_function_icon set the function icon

  • g:spaceline_scroll_bar_chars set the scroll bar chars. Some alternatives:

" one char wide solid vertical bar This is default
let g:spaceline_scroll_chars = [
  \  ' ', '', '', '', '', '', '', '', ''
  \  ]

" two char wide fade-in blocks
let g:spaceline_scroll_chars = [
  \ '  ', '', '', '', '', '█░', '█▒', '█▓', '██'
  \ ]

" three char wide solid horizontal bar
let g:spaceline_scroll_chars = [
  \ '   ', '', '', '', '',
  \ '', '', '', '', '█▏ ',
  \ '█▎ ', '█▍ ', '█▌ ', '█▋ ', '█▊ ',
  \ '█▉ ', '██ ', '██▏', '██▎', '██▍',
  \ '██▌', '██▋', '██▊', '██▉', '███'
  \ ]

let g:spaceline_scroll_chars = ['', '', '', '', ''] " on macOS

let g:spaceline_scroll_chars = ['', '', '', '', ''] " on Linux

Goyo Support

  • check the thinkvim usage

FAQ

  • Why the symbols look weird in my vim ?

Make sure you have installed nerdfont font from https://www.nerdfonts.com/, Different fonts may be inconsistent in the performance of symbols. The solution, If you use Mac with iterm2, you can set a different font for the symbol.

Another way I recommend you to use kitty terminal, it has built-in symbol font support.Kitty support Mac and Linux.

Donate

Do you like spaceline.vim? buy me a coffee 😘!

Support via PayPal

Wechat AliPay
wechat ali

License

MIT

About

vim statusline like spacemacs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Vim Script 100.0%
0