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

1 Answer

+1 vote

You can do something like you've suggested:

:!su -c 'vifm %d %D' -


:!sudo vifm %d %D

Possibly map it something (e.g. ,R):

" become root
nnoremap ,R {one of two commands from above}<cr>

missed ! sign. thanks a lot