In bash, I can do
EDITOR=vim crontab -e. Can I get similar effect in Fish shell?
Don't see why this shouldn't work:
That is from the Documentation
Use the env command.
You can also declare a local variable in a block and that would not bypass the shell