Welcome to Vifm Q&A, where you can ask questions about Vifm usage. Registration is optional, anonymous posts are moderated. GitHub or Google logins are enabled.
0 votes
in vifm by

Hello, I just wanted to share this easy way to extract archives from within vifm. Maybe there's a better way but it works quite well. It requires dtrx.

" Extract an archive
command! extract dtrx -n %c %i
nnoremap x :extract<cr>:echo expand('%"c') ": archive extracted"<cr>

And thank you for this amazing programme!


Hi, I've tried this but the "archive extracted" message occurs before it completes and even if it fails. Is it possible to show only after it actually occurs?


Hi. If you remove %i then it will wait for the command to finish.


You can also try using this plugin:

command! extract :Bg dtrx -n %c
nnoremap <silent> x :extract<cr>

It won't give you status information, but you'll see indication of the ongoing process until it's done.

Your answer


Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
Please answer the question:
To avoid this verification in future, please log in or register.
If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here is acceptable, but this is not a perfect place for them.

Support Ukraine