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.

Is there a way to become root on the fly? Relaunch vifm with %d and %D?

0 votes
asked Aug 1, 2016 in vifm by granderil

1 Answer

+1 vote
answered Aug 1, 2016 by xaizek

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>
commented Aug 2, 2016 by granderil

missed ! sign. thanks a lot

When asking, English language is preferred, but Russian, Ukrainian and maybe German can be used as well (in the last case answers might be in bad German).

If you would like to make a bug report or feature request consider using GitHub, SourceForge or e-mail. Posting such things here won't be considered as a spam, but this is not a perfect place for it.