Sample Header Ad - 728x90

vifm: How to format mtime column to display Year?

1 vote
1 answer
703 views
I'm quite new to vifm but I've been reading the manual and browsing around. So far I've been able to do all I wanted to do with it, but I'm missing a piece. I wanted to display the modification date as the "2nd column" (and in fact, I sort by that descending), but after seeing this screenshot, prompted by this StackOverflow question/answer combo , I noticed my (same) viewcolumns doesn't produce the same output: vifm The mtime formatting is not showing the year. Here's the (relevant) vifmrc block:
set viewcolumns=*{name}..,16{mtime}
set sort=-mtime
I've tried a few other alternatives but I think I need to tell something to mtime somewhere, and I'm usure where to look (searching for vifm is hard, as most results are either for vi (the editor) or just the keywords are too generic to find relevant results (or maybe I'm bad at searching). Any ideas how to produce a day/month/year (in 2 digit format is fine) followed by HH:mm? is the mtime command using some form of environment variable and therefore formatting it day/month hour:minute somewhere?
Asked by Martin Marconcini (131 rep)
Jan 27, 2020, 01:59 PM
Last activity: Jan 27, 2020, 03:56 PM