hi User1 ctermbg=red ctermfg=black guibg=black guifg=red hi User2 ctermbg=red ctermfg=white guibg=black guifg=red set laststatus=2 set statusline=%F "Full path to the file in the buffer. set statusline+=%1* "switch to User1 highlight set statusline+=%m "modified flag set statusline+=%2* "switch to User2 highlight set statusline+=%r "read only flag set statusline+=%* "switch back to statusline highlight set statusline+=\ [%{strlen(&fenc)?&fenc:'none'}, "file encoding set statusline+=%{&ff}] "file format set statusline+=%h "help file flag set statusline+=\ %y "filetype set statusline+=%= "left/right separator set statusline+=%c, "cursor column set statusline+=%l/%L "cursor line/total lines set statusline+=\ %P "percent through file