I'm using Zsh and some CLI's such as Google's gcloud
load files via $EDITOR
.
For me, I have set this as:
export EDITOR="/usr/local/bin/mvim"
With aliases for that editor using the -v
flag which loads vim in the terminal:
mac_vim="$EDITOR -v"
alias vi=$mac_vim
alias vim=$mac_vim
alias v=$mac_vim
That works but when the gcloud
CLI calls $EDITOR
it does not have the -v
flag so it opens in a new terminal. I thought I could change that by instead adding the -v
flag here:
export EDITOR="/usr/local/bin/mvim -v"
However, when I try and run that on the command line I get:
$EDITOR text.html
zsh: no such file or directory: /usr/local/bin/mvim -v
Is it possible to include a flag when exporting my $EDITOR
?