VIM: Sets up simple statusbar

master
Jonathan Hodgson 4 years ago
parent a315410608
commit 9058178187
  1. 33
      nvim/.config/nvim/plugin/statusline.vim

@ -0,0 +1,33 @@
" Always show a statusline
set laststatus=2
" Make it empty so we can add to it
set statusline=
" Space character
set statusline+=\
" Short file name
set statusline+=%f
" Space character
set statusline+=\
" Read only flag
set statusline+=%r
" Space character
set statusline+=\
" Modified flag
set statusline+=%m
" Seperator
set statusline+=%=
" Git branch
set statusline+=%{FugitiveStatusline()}
" Space character
set statusline+=\
" Line number
set statusline+=%l
" Literal `/`
set statusline+=/
" Total number of lines
set statusline+=%L
" Space character
set statusline+=\
" File type
set statusline+=%y
Loading…
Cancel
Save