diff options
author | listout <listout@protonmail.com> | 2022-01-09 22:50:41 +0530 |
---|---|---|
committer | listout <listout@protonmail.com> | 2022-01-09 22:50:41 +0530 |
commit | dbde04b3b62e764db32b72c09544d3e879abf99a (patch) | |
tree | d9d5cdb91a90b052461a9889dbf1e45dec3053b6 | |
parent | f6f0055bdd56e675e43329cd070a4f6954b089e8 (diff) |
More minimal status line
Removed:
- Mode
- File encoding
- File format
-rw-r--r-- | configs/statusline.vim | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/configs/statusline.vim b/configs/statusline.vim index 4e7db4b..0dde2f1 100644 --- a/configs/statusline.vim +++ b/configs/statusline.vim @@ -18,27 +18,27 @@ function! StatusDiagnostic() abort return join(msgs, ' '). ' ' . get(g:, 'coc_status', '') endfunction -let g:currentmode={ - \ 'n' : 'NORMAL ', - \ 'no' : 'N·Operator Pending ', - \ 'v' : 'VISUAL ', - \ 'V' : 'V·Line ', - \ "\<C-V>" : 'V·Block ', - \ 's' : 'Select ', - \ 'S' : 'S·Line ', - \ 'x19' : 'S·Block ', - \ 'i' : 'INSERT ', - \ 'R' : 'REPLACE ', - \ 'Rv' : 'V·Replace ', - \ 'c' : 'Command ', - \ 'cv' : 'Vim Ex ', - \ 'ce' : 'Ex ', - \ 'r' : 'Prompt ', - \ 'rm' : 'More ', - \ 'r?' : 'Confirm ', - \ '!' : 'Shell ', - \ 't' : 'Terminal ' - \} +"let g:currentmode={ + "\ 'n' : 'NORMAL ', + "\ 'no' : 'N·Operator Pending ', + "\ 'v' : 'VISUAL ', + "\ 'V' : 'V·Line ', + "\ "\<C-V>" : 'V·Block ', + "\ 's' : 'Select ', + "\ 'S' : 'S·Line ', + "\ 'x19' : 'S·Block ', + "\ 'i' : 'INSERT ', + "\ 'R' : 'REPLACE ', + "\ 'Rv' : 'V·Replace ', + "\ 'c' : 'Command ', + "\ 'cv' : 'Vim Ex ', + "\ 'ce' : 'Ex ', + "\ 'r' : 'Prompt ', + "\ 'rm' : 'More ', + "\ 'r?' : 'Confirm ', + "\ '!' : 'Shell ', + "\ 't' : 'Terminal ' + "\} function! ReadOnly() if &readonly || !&modifiable @@ -48,14 +48,14 @@ function! ReadOnly() endfunction set statusline= -set statusline+=\ %{toupper(g:currentmode[mode()])} +"set statusline+=\ %{toupper(g:currentmode[mode()])} set statusline^=%{StatusDiagnostic()} set statusline+=%8*\ %<%f\ %{ReadOnly()}\ %w set statusline+=%{&modified?'[+]':''} set statusline+=%= set statusline+=\ %y -set statusline+=\ %{&fileencoding?&fileencoding:&encoding} -set statusline+=\[%{&fileformat}\] +"set statusline+=\ %{&fileencoding?&fileencoding:&encoding} +"set statusline+=\[%{&fileformat}\] set statusline+=\ %p%% set statusline+=\ %l:%c set statusline+=\ " |