Published: August 29, 2022 • 2 min read
Imagine you’re iterating on a script and you want to drop back to the terminal to experiment.
Maybe you shell out in command mode. Maybe you open a new terminal or Tmux pane.
Or maybe you suspend Vim, run your command, and return to Vim! Here’s one way to achieve this.
From Vim, suspend your session with:
:suspend
At the terminal, you should see:
zsh: suspended vim
Terminal away! When finished, send Vim to the foreground:
fg
Get better at programming by learning with me. Subscribe to my newsletter for weekly ideas, creations, and curated resources from across the world of programming. Join me today!