Suspend a Vi/Vim session for shell
Ever want to run some shell commands while doing a vi edit session? Like, “what’s the name of that file” I want to use in this script I’m making?
Instead of exiting vi; doing the ls filenamepart*, and going back into vi, you can from a vi session:
enter “:”, then enter “shell”.
This suspends the vi session and gives you a command prompt where you can use any shell command. When finished, enter the “exit” command and you will be returned to the vi session.







