Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (37 sloc) 1.88 KB
scriptencoding UTF-8
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" [1] [2] [3] [4] [5] [6] [7] "
"  0  0 plugin/statusline.vim    02/26:32 master  "
" ------- ------ -------------- - --- -------- -------- "
" |_ |__ |______ |___ |__ |_ "
" | | |__ | | | "
" | fileprefix() | | %l/%L:%c | "
" linter() %t filetypesymbol() git() "
" "
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" [1] Linter status, error and warnings count with Unicode symbols.
set statusline+=%{repeat('\ ',4)} " Generate space characters given number of times.
set statusline+=%{kutsan#statusline#linter()}
set statusline+=%{repeat('\ ',4)}
" Truncate lines to left if they are too long.
set statusline+=%<
" [2] Relative path to file's directory with trailing '/'.
set statusline+=%{kutsan#statusline#fileprefix()}
" [3] File name for current buffer.
set statusline+=%t
" [4] FileType Unicode symbol.
set statusline+=%{repeat('\ ',1)}
set statusline+=%{kutsan#statusline#filetypesymbol()}
" Align all items to right from this point on.
set statusline+=%=
" [5] Show an icon for common options if they are enabled.
set statusline+=%{kutsan#statusline#markdownpreview()}
set statusline+=%{kutsan#statusline#hlsearch()}
set statusline+=%{kutsan#statusline#spell()}
set statusline+=%{repeat('\ ',2)}
" [6] Line numbers and column numbers in <Line>:<Column> format.
set statusline+=%02l/%02L:%02c
set statusline+=%{repeat('\ ',2)}
" [7] Git HEAD status.
set statusline+=%{kutsan#statusline#git()}
set statusline+=%{repeat('\ ',2)}
You can’t perform that action at this time.