How to return to shell without leaving vi editor?

Answer Posted / ali ahsan

There are many ways to return to shell without closing Vi
editor.some of them are as follows

1
:sh to exit to your default shell.
$ exit at the shell prompt will return you to vim.

2

control-z
will suspend the process and get back to your shell

fg
will resume (bring to foreground) your suspended vim

3

:!bash(or :sh)
followed by:

control-d

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the command used to append to buffer?

2157


HOW WE CAN MAKE THE DLIEVERY WHICH IS BLOCKED DUE TO CREDIT LIMIT.

2468