“ down vote accepted For text files rifle (ranger's file opener) uses your default $EDITOR. You can set it to vim by adding the line export EDITOR=vim to your ~/.bashrc or equivalent. For other file types you can configure rifle with the file ~/.config/ranger/rifle.conf. First copy the defaults [l