all repos — dotfiles @ 16123e04720719f3605afc6cbeb699af1a061889

my *nix dotfiles

config/nvim/plugin/statusline.vim (view raw)

 1" statusline
 2let g:currentmode={
 3			\ 'n'  : 'normal ',
 4			\ 'no' : 'n·operator pending ',
 5			\ 'v'  : 'visual ',
 6			\ 'V'  : 'v·line ',
 7			\ '' : 'v·block ',
 8			\ 's'  : 'select ',
 9			\ 'S'  : 's·line ',
10			\ '' : 's·block ',
11			\ 'i'  : 'insert ',
12			\ 'R'  : 'replace ',
13			\ 'Rv' : 'v·replace ',
14			\ 'c'  : 'command ',
15			\ 'cv' : 'vim ex ',
16			\ 'ce' : 'ex ',
17			\ 'r'  : 'prompt ',
18			\ 'rm' : 'more ',
19			\ 'r?' : 'confirm ',
20			\ '!'  : 'shell ',
21			\ 't'  : 'terminal '}
22
23hi PrimaryBlock   ctermfg=06 ctermbg=00
24hi SecondaryBlock ctermfg=08 ctermbg=00
25hi Blanks   ctermfg=07 ctermbg=00
26
27set statusline=
28set statusline+=%#PrimaryBlock#
29set statusline+=\ %{g:currentmode[mode()]}
30set statusline+=%#SecondaryBlock#
31set statusline+=%#Blanks#
32set statusline+=\ %f\ 
33set statusline+=%m
34set statusline+=%=
35set statusline+=%#SecondaryBlock#
36set statusline+=\ %l,%c\  
37set statusline+=%#PrimaryBlock#
38set statusline+=%{&filetype}