aboutsummaryrefslogtreecommitdiff
path: root/.local/share/nvim/site/autoload/statusbar.vim
blob: 59e63f56c03b48650bb0ea83c626a9a97669531d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function! statusbar#refresh()
	let g:currentmode={
				\ 'n'  : 'NORMAL ',
				\ 'v'  : 'VISUAL ',
				\ 'V'  : 'V·Line ',
				\ "\<C-V>" : 'V·Block ',
				\ 'i'  : 'INSERT ',
				\ 'R'  : 'R ',
				\ 'Rv' : 'V·Replace ',
				\ 'c'  : 'Command ',
				\}

	set statusline=
	set statusline+=\ %{toupper(g:currentmode[mode()])}
	set statusline+=%=
	set statusline+=\ %f
	set statusline+=%=
	set statusline+=\ %l/%L\ %p%%\ 
endfunction