When you execute the shell in
vim via the
:sh command, the shell that is set in the
shell option is executed. However, is it possible to pass some information from the vim instance that you are running to the invoked shell?
Of course that would be easily doable if you could alter the
shell option to have some environment variables prepended to it (e.g.
a=foo b=bar /usr/bin/bash). However that doesn't seem to be possible. Is there some other way?