Reputation: 611
In vim 7.3, I'd like to show the current time and git info on the ruler bar.
How can I do this?
From vim's guide, it seems I should modify the rulerformat option, but how?
Upvotes: 3
Views: 1272
Reputation: 16453
for git info, better way to do it is using fugitive.vim, after you installed the fugitive vim plugin, you can set your statusline in your .vimrc
set statusline =... %{fugitive#statusline()} ...
to display time in your statusline, you need strftime
function, eg.
set statusline+=%{strftime("%I:%M")}
You can look here for more statusline ideas
Upvotes: 7