How to return to shell without leaving vi editor?
Answers were Sorted based on User's Feedback
Answer / prakash
In the vi Press 'Esc' and ':' then Type 'shell'
And you can go to shell and do different commands.
To return to vi editor type 'exit' in shell prompt.
| Is This Answer Correct ? | 26 Yes | 0 No |
Answer / 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 |
what does the c$ command do from command mode?
Which command is used to replace many characters?
what is the command used to set margin in vi editor?
How to enter from command mode to insertion mode?
What does the /text command do?
what is the command used to append to buffer?
How to append a file to current file?
What is the difference between ZZ and :wq commands?
What is the difference between lettered buffer and temporary buffer?
How to create a .exrc file in vi editor?
what is the command used to append text after current line?
What is the command used to replace many characters?