In Bash, I can do
EDITOR=vim command and
command will be run with
EDITOR set to
vim, but this won't affect the value of
EDITOR in the shell itself. Is it possible to do this in
You can do it in windows like this no need for installing anything.
You'll see a list of variables and you'll see EDITOR=vim, now run "set" again and it won't be listed.
You can do multiple &&'s to add additional commands:
EDIT: /C exits the new cmd right away after running, if you produce output with the new one it will still be visible in the parent window.
You can opt to use /K in which case the new cmd window stays open at the end of the run.