The Geek Ramblings

Blog by Aravind Pedapudi

Oct 5th, 2013

vifm disk usage

To view disk usage and free space available on disk in vifm, add this to your vifmrc and run in normal mode by typing 'du' or 'df'

nmap du :!du -s -BM 1>&2 &<cr>
nmap df :!df . -BM 1>&2 &<cr>

du & df are disk usage utilities which if run without forking into the background causes vifm to block. The processes after completing their run return their output to stderr, which vifm displays in a "Background Error" popup. Simple.