pastebin - collaborative debugging tool
kpaste.net RSS


Untitled
Posted by Anonymous on Tue 5th May 2015 11:42
raw | new post

  1. hi User1 ctermbg=red ctermfg=black  guibg=black guifg=red
  2. hi User2 ctermbg=red ctermfg=white  guibg=black guifg=red
  3.  
  4. set laststatus=2
  5.  
  6. set statusline=%F       "Full path to the file in the buffer.
  7. set statusline+=%1*     "switch to User1 highlight
  8. set statusline+=%m      "modified flag
  9. set statusline+=%2*     "switch to User2 highlight
  10. set statusline+=%r      "read only flag
  11. set statusline+=%*      "switch back to statusline highlight
  12.  
  13. set statusline+=\ [%{strlen(&fenc)?&fenc:'none'}, "file encoding
  14. set statusline+=%{&ff}] "file format
  15. set statusline+=%h      "help file flag
  16.  
  17. set statusline+=\ %y      "filetype
  18. set statusline+=%=      "left/right separator
  19. set statusline+=%c,     "cursor column
  20. set statusline+=%l/%L   "cursor line/total lines
  21. set statusline+=\ %P    "percent through file

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.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}





All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at