How could I exit Vim, not :q
, and then go back to continue editing?
How to temporarily exit Vim and go back
vim
Related Topic
- Tab key == 4 spaces and auto-indent after curly braces in Vim
- Vim clear last search highlighting
- Your most productive shortcut with Vim
- What’s a quick way to comment/uncomment lines in Vim
- How to do case insensitive search in Vim
- Git – How to make Git use the editor of the choice for commits
- How does the vim “write with sudo” trick work
- How to exit the Vim editor
Best Answer
Assuming terminal Vim on a flavor of *nix:
To suspend your running Vim
Ctrl + Z
will suspend the process and get back to your shell
will resume (bring to foreground) your suspended Vim.
To start a new shell
Start a subshell using:
(as configured by)
or
followed by:
Ctrl+D (or
exit
, but why type so much?)to kill the shell and return to Vim.