mirror of
https://github.com/tomru/DotfilesOld.git
synced 2026-03-03 06:27:21 +01:00
set coloring for status line and modeMsg
This commit is contained in:
8
vimrc
8
vimrc
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user