I've recently switched to VIM as my full-time editor. I now have, more or less, two tools I use: the terminal, and the web browser.
One trick I've found essential to using VIM full-time is being able to pause it, run a bash command, then jump back into VIM.
Here's a concrete example:
- I create a new file in VIM
- I realize I named the file
file.csswhen I meant to name is
- I jump out of VIM, into a shell, and run
mv file.css file.scss
This leads into the topic of this article: how can we run multiple processes in one shell?
This ends up being quite simple:
- To pause the current program (for example,
- To list all paused programs:
- To jump back into a paused program:
fg <job_number>(or just
fgif you have only one job)
- To run a paused program in the background:
Hope you found this tip useful!
If you're interested in Linux, VIM, Django, Python, React/RN and just tech in general, follow me on dev.to or on Twitter @connorbode!
You can also find me on the web at matix.io.