No edit summary |
(Insert TipProposed template + minor manual clean) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{review}} |
{{review}} |
||
+ | {{TipImported |
||
− | {{Tip |
||
|id=1483 |
|id=1483 |
||
+ | |previous=1472 |
||
− | |title=Show Last modified time (and others) in status bar |
||
+ | |next=1484 |
||
− | |created=January 21, 2007 |
+ | |created=January 21, 2007 |
|complexity=basic |
|complexity=basic |
||
− | |author=Ace |
+ | |author=Ace |
|version=5.7 |
|version=5.7 |
||
|rating=1/3 |
|rating=1/3 |
||
+ | |category1= |
||
− | |text= |
||
+ | |category2= |
||
⚫ | |||
− | |||
⚫ | |||
− | |||
− | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
− | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
⚫ | |||
− | |||
− | |||
− | |||
⚫ | |||
}} |
}} |
||
+ | <pre> |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | Woops, missed: |
||
⚫ | |||
− | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
− | endif |
||
⚫ | |||
− | endf |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
+ | endif |
||
⚫ | |||
+ | endfunction |
||
+ | </pre> |
||
⚫ | |||
− | '''Anonymous''' |
||
− | , January 21, 2007 7:56 |
||
− | ---- |
||
− | Ok, this is my first tip... so bare with me if any other misstakes are there. |
||
− | I can also add that it shows all those nice things like [which row/total rows, column] % of the file shown... |
||
⚫ | |||
− | danielakesson--AT--gmail.com |
||
− | , January 21, 2007 8:06 |
||
− | ---- |
||
− | <!-- parsed by vimtips.py in 0.661542 seconds--> |
Latest revision as of 03:54, 6 January 2010
Tip 1483 Printable Monobook Previous Next
created January 21, 2007 · complexity basic · author Ace · version 5.7
autocmd BufWrite * call SetStatusLine() autocmd BufRead * call SetStatusLine() function! SetStatusLine() set statusline=[%n]\ %f\ %(\ \ (%M%R%H)%)\ \ \ %=\t%{ShowTab()}\ \ \ Modified:\ %{Time()}\ \ [%3l:%3L,%2c]\ %p%%\ endfunction function! Time() return strftime("%c", getftime(bufname("%"))) endfunction function! ShowTab() let TabLevel = (indent('.') / &ts ) if TabLevel == 0 let TabLevel='*' endif return TabLevel endfunction
See also VimTip1472.