set coloring for status line and modeMsg

This commit is contained in:
Thomas Ruoff
2011-10-25 23:35:52 +02:00
parent 2bf8418d84
commit 1f3170a5a4

8
vimrc
View File

@@ -227,6 +227,7 @@ au FileType python set noexpandtab
au FileType javascript setlocal ts=2 sts=2 sw=2 au FileType javascript setlocal ts=2 sts=2 sw=2
au BufRead,BufNewFile *.json set ft=json au BufRead,BufNewFile *.json set ft=json
"" STATUS LINE "" STATUS LINE
set laststatus=2 " always hide the statusline set laststatus=2 " always hide the statusline
@@ -266,6 +267,13 @@ set statusline+=%l/%L " cursor line/total lines
set statusline+=\ %P\ " percent through file set statusline+=\ %P\ " percent through file
set laststatus=2 " always show status line set laststatus=2 " always show status line
"" COLORING ELEMENTS
highlight statusLine cterm=bold ctermfg=yellow ctermbg=darkred
highlight statusLineNC cterm=bold ctermfg=black ctermbg=white
highlight modeMsg cterm=bold ctermfg=white ctermbg=darkblue
"" MISC FUNCTIONS
function! FileSize() function! FileSize()
let bytes = getfsize(expand("%:p")) let bytes = getfsize(expand("%:p"))
if bytes <= 0 if bytes <= 0