Expansion of the VIM status bar

Source: Internet
Author: User

Add the following to the ~/.VIMRC file:

  1. Set statusline=
  2. Set statusline+=%7*\[%n] "Buffernr
  3. Set statusline+=%1*\%<%f\ "file path
  4. Set statusline+=%2*\%y\ "file type
  5. Set statusline+=%3*\%{". ( &fenc!='? &fenc:&enc).      "} "Code 1
  6. Set statusline+=%3*\%{(&bomb?\", bom\": \ "\")}\ "encoded 2
  7. Set statusline+=%4*\%{&ff}\ "File System (Dos/unix..)
  8. Set statusline+=%5*\%{&spelllang}\%{highlightsearch ()}\ "Language & is highlighted, H is highlighted?
  9. Set statusline+=%8*\%=\ row:%l/%l\ (%03p%%) \ "cursor where line number/total number of rows (percent)
  10. Set statusline+=%9*\ col:%03c\ "cursor column
  11. Set statusline+=%0*\ \%m%r%w\%p\ \ "Modified? Read only? Top/bottom

If you need to set the color look here

Expansion of the VIM status bar

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.