How to return to shell without leaving vi editor?




Answers were Sorted based on User's Feedback



How to return to shell without leaving vi editor?..

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

How to return to shell without leaving vi editor?..

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

Post New Answer




More Vi Editor Interview Questions

What is the difference between lettered buffer and temporary buffer?

2 Answers  


What is the command used to display line numbers in vi editor?

5 Answers  


How to replace String "a" with String "b" in whole file of the vi editor?

10 Answers   Niksun,


How to enter from command mode to insertion mode?

3 Answers  


what is the command used to append to buffer?

0 Answers   IBM,






what are the different delete commands used in vi editor?

2 Answers  


How to create a .exrc file in vi editor?

1 Answers  


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

0 Answers   Seamless,


What is the format of vi command?

2 Answers  


what is the command used to delete current line in vi editor?

2 Answers  


what are the two different modes in vi editor?

7 Answers  


What is the difference between ZZ and :wq commands?

4 Answers  






Categories
  • Vi Editor Interview Questions Vi Editor (21)
  • Visual Studio IDE Interview Questions Visual Studio IDE (53)
  • Editors AllOther Interview Questions Editors AllOther (1)