I would just set the wanted variable on login, then you don't have to deal with that problem at all during your session/in ranger. Do you use a login manager or do you login via console? In case you login via console, I just would put the line > export EDITOR=vim into your .bashprofile or .zprofile, .kprofile, whatever shell you use. Then $EDITOR should be set during your entire session.
In case you use a loginmanager I would try to do something similar, for example execute a script on login with this line in it. In case you have no idea how to do it with your login manager, you can just put > awful.util.spawn(path/to/your/script) at the end of your rc.lua (you could of course also call your wished shell directly to execute the export-command without pointing at a separate script (should be something like > /bin/zsh -c "export $EDITOR=vim" ) Best Regards, Manuel -- To unsubscribe, send mail to [email protected].
