What is the best approach of using shell commands from vim? I know about the possibility of !shell_command. But this doesn’t know all commands e.g.
export OSTYPE; make install So I have to run it outside vim. Is there better approach?
What is the best approach of using shell commands from vim? I know about
Share
You can start a shell from Vim using the
:shcommand. When the shell exits(after the
exitcommand or Ctrl+D) you return to Vim. The name for the shell command comes from theshelloption.For terminal Vim (on unix-like systems) you can also use Ctrl+Z to suspend Vim and get back to the shell from which it was run. To resume the Vim process, use the
fgcommand.