Jake Worth

TIL: Suspend Vim

Published: August 29, 2022 2 min read

  • til
  • vim

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 Jake Worth's Newsletter for bi-weekly ideas, creations, and curated resources from across the world of programming. Join me today!


Blog of Jake Worth, software engineer in Maine.

© 2022 Jake Worth.