Vim statusline设置

 1 " statusline
 2  " cf the default statusline: %<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P
 3  " format markers:
 4  "   %< truncation point
 5  "   %n buffer number
 6  "   %f relative path to file
 7  "   %m modified flag [+] (modified), [-] (unmodifiable) or nothing
 8  "   %r readonly flag [RO]
 9  "   %y filetype [ruby]
10  "   %= split point for left and right justification
11  "   %-35. width specification
12  "   %l current line number
13  "   %L number of lines in buffer
14  "   %c current column number
15  "   %V current virtual column number (-n), if different from %c
16  "   %P percentage through buffer
17  "   %) end of width specification
18  set statusline=%<\ %n:%f\ %m%r%y%=%-35.(line:\ %l\ of\ %L,\ col:\ %c%V\ (%P)%)
posted @ 2012-10-17 21:55  断缠子  阅读(1240)  评论(0编辑  收藏  举报
看不到我把