Skyler Grey | a7feb6e | 2022-08-26 06:51:55 +0100 | [diff] [blame^] | 1 | set statusline=%t "tail of the filename |
| 2 | set statusline+=[%{strlen(&fenc)?&fenc:'none'}, "file encoding |
| 3 | set statusline+=%{&ff}] "file format |
| 4 | set statusline+=%h "help file flag |
| 5 | set statusline+=%m "modified flag |
| 6 | set statusline+=%r "read only flag |
| 7 | set statusline+=%y "filetype |
| 8 | set statusline+=%= "left/right separator |
| 9 | set statusline+=%c, "cursor column |
| 10 | set statusline+=%l/%L "cursor line/total lines |
| 11 | set statusline+=\ %P "percent through file |
| 12 | " TODO: Check if this is actually used with airline |
| 13 | |
| 14 | let g:airline#extensions#hunks#coc_git = 1 |
| 15 | let g:airline#extensions#whitespace#enabled = 1 |
| 16 | let g:airline#parts#ffenc#skip_expected_string='utf-8[unix]' |
| 17 | let g:airline_skip_empty_sections = 1 |