diff options
author | listout <listout@protonmail.com> | 2022-08-25 01:15:39 +0530 |
---|---|---|
committer | listout <listout@protonmail.com> | 2022-09-01 16:26:42 +0530 |
commit | b2da05f4e3072f24c52eb14376c1f32cb19e6932 (patch) | |
tree | 18a9c0388d8d1a7e9af1f21d7c55ef1e13f7d019 /configs/statusline.vim | |
parent | dd31843246ccdf9783f1b54d79b5e1ee22596399 (diff) |
remove old configs
Signed-off-by: listout <listout@protonmail.com>
Diffstat (limited to 'configs/statusline.vim')
-rw-r--r-- | configs/statusline.vim | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/configs/statusline.vim b/configs/statusline.vim deleted file mode 100644 index 0dde2f1..0000000 --- a/configs/statusline.vim +++ /dev/null @@ -1,61 +0,0 @@ -set laststatus=2 -if !has('gui_running') - set t_Co=256 -endif - -set noshowmode - -function! StatusDiagnostic() abort - let info = get(b:, 'coc_diagnostic_info', {}) - if empty(info) | return '' | endif - let msgs = [] - if get(info, 'error', 0) - call add(msgs, 'E' . info['error']) - endif - if get(info, 'warning', 0) - call add(msgs, 'W' . info['warning']) - endif - 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 ' - "\} - -function! ReadOnly() - if &readonly || !&modifiable - return '' - else - return '' -endfunction - -set statusline= -"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+=\ %p%% -set statusline+=\ %l:%c -set statusline+=\ " |