-
-
Save spacegaucho/2fef5c3f386086c2ff937fc85c92f21d to your computer and use it in GitHub Desktop.
simple functional vim status line - jellybeans theme colors
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " basic stuff | |
| execute pathogen#infect() | |
| " status bar colors | |
| au InsertEnter * hi statusline guifg=black guibg=#d7afff ctermfg=black ctermbg=magenta | |
| au InsertLeave * hi statusline guifg=black guibg=#8fbfdc ctermfg=black ctermbg=cyan | |
| hi statusline guifg=black guibg=#8fbfdc ctermfg=black ctermbg=cyan | |
| " Status line | |
| " default: set statusline=%f\ %h%w%m%r\ %=%(%l,%c%V\ %=\ %P%) | |
| " Status Line Custom | |
| let g:currentmode={ | |
| \ 'n' : 'Normal', | |
| \ 'no' : 'Normal·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' | |
| \} | |
| set laststatus=2 | |
| set noshowmode | |
| set statusline= | |
| set statusline+=%0*\ %n\ " Buffer number | |
| set statusline+=%1*\ %<%F%m%r%h%w\ " File path, modified, readonly, helpfile, preview | |
| set statusline+=%3*│ " Separator | |
| set statusline+=%2*\ %Y\ " FileType | |
| set statusline+=%3*│ " Separator | |
| set statusline+=%2*\ %{''.(&fenc!=''?&fenc:&enc).''} " Encoding | |
| set statusline+=\ (%{&ff}) " FileFormat (dos/unix..) | |
| set statusline+=%= " Right Side | |
| set statusline+=%2*\ col:\ %02v\ " Colomn number | |
| set statusline+=%3*│ " Separator | |
| set statusline+=%1*\ ln:\ %02l/%L\ (%3p%%)\ " Line number / total lines, percentage of document | |
| set statusline+=%0*\ %{toupper(g:currentmode[mode()])}\ " The current mode | |
| hi User1 ctermfg=007 ctermbg=239 guibg=#4e4e4e guifg=#adadad | |
| hi User2 ctermfg=007 ctermbg=236 guibg=#303030 guifg=#adadad | |
| hi User3 ctermfg=236 ctermbg=236 guibg=#303030 guifg=#303030 | |
| hi User4 ctermfg=239 ctermbg=239 guibg=#4e4e4e guifg=#4e4e4e | |
| " Paste needs to come before the rest or it will reset them | |
| set paste | |
| set background=dark | |
| set ignorecase | |
| set smartcase | |
| set tabstop=2 | |
| set shiftwidth=2 | |
| set expandtab | |
| set autoindent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment