dotfiles

<-- duh.
Log | Files | Refs | LICENSE

commit 16eec0c56a4177285b447454e323af2c45e196af
parent b713a54355f388821f99695e986a46ce03791aa8
Author: hhvn <dev@hhvn.uk>
Date:   Sun, 20 Jun 2021 18:21:53 +0100

.c/n/m/statusline.vim: fix V-*

Diffstat:
M.config/nvim/modules/statusline.vim | 50+++++++++++++++++++++++++-------------------------
1 file changed, 25 insertions(+), 25 deletions(-)

diff --git a/.config/nvim/modules/statusline.vim b/.config/nvim/modules/statusline.vim @@ -1,28 +1,28 @@ let g:currentmode={ - \'n' : 'Normal ', - \'no' : 'N·Operator Pending ', - \'v' : 'Visual ', - \'V' : 'V·Line ', - \'^V' : 'V·Block ', - \'s' : 'Select ', - \'S': 'S·Line ', - \'^S' : '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 ' + \'n' : 'Normal', + \'no' : 'N-Operator Pending', + \'v' : 'Visual', + \'V' : 'V-Line', + \'^V' : 'V-Block', + \'s' : 'Select', + \'S': 'S-Line', + \'^S' : '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! Modecurrent() abort let l:modecurrent = mode() - let l:modelist = toupper(get(g:currentmode, l:modecurrent, 'V·Block ')) + let l:modelist = toupper(get(g:currentmode, l:modecurrent, 'V-Block')) let l:current_status_mode = l:modelist let l:lmode = tolower(l:current_status_mode) @@ -31,15 +31,15 @@ endfunction function! Modecol() let other='' - let l:mode=tolower(Modecurrent()) + let l:mode=toupper(Modecurrent()) - if l:mode == 'insert ' + if l:mode == 'INSERT' let lcol = 'InsertMode' - elseif l:mode == 'terminal ' + elseif l:mode == 'TERMINAL' let lcol = 'TerminalMode' - elseif l:mode == 'command ' + elseif l:mode == 'COMMAND' let lcol = 'CommandMode' - elseif l:mode == 'visual ' || l:mode == 'v-block ' || l:mode == 'v-line ' || l:mode == 'select ' + elseif l:mode == 'VISUAL' || l:mode == 'V-BLOCK' || l:mode == 'V-LINE' || l:mode == 'SELECT' let lcol = 'VisualMode' else let lcol = 'NormalMode'