bpeebles / spaceline.vim

vim statusline like spacemacs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spaceline.vim

The best vim statusline plugin.

new

Feature

  • Fast load speed
  • More separator support
  • High Custom
  • More beautiful than other statusline plugins
  • Special Colorscheme
  • File icon syntax highlight
  • Scoll 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' or 'kyazdani42/nvim-web-devicons' --neovim only

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
  • 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 vim-signify need mhinz/vim-signify 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.

License

MIT

About

vim statusline like spacemacs

License:MIT License


Languages

Language:Vim Script 100.0%