- 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
Untitled
Posted by Anonymous on Tue 5th May 2015 11:42
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.