温度如何。退出 Vi 编辑器并返回?
我浪费了很多时间进行谷歌搜索,但没有找到解决方案。但我见过这个。 需要使用哪个组合键? 谢谢。
I have waste many time for googling, but didn't find solution. But I have seen this.
Which key combination need use?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
如果
vim
在终端中,您可以使用Ctrl-Z
暂停它,然后说fg
将其返回前台。您还可以使用运行 shell! /bin/bash
然后退出返回编辑器。You can suspend
vim
if it's in a terminal usingCtrl-Z
and then sayfg
to get it back to the foreground. You can also run a shell using! /bin/bash
and then exit it to return to the editor.使用control-Z。当您想返回 vi 时,请在 shell 提示符下使用 fg。
Use control-Z. When you want to get back into vi, use fg from the shell prompt.
如果你的意思是“退出”shell,你可以尝试这个命令:
返回到 Vi 。
然后你就是一个 shell,你可以通过离开 shell或按 CTRL-D
If you mean a shell by "exit" you can try this command:
then you a shell and you can get back to Vi by leaving the shell with
or by pressing CTRL-D.
当从 shell 调用 vi 时,我通常使用的是
:shell
命令来启动一个新的 shell,然后在结束时使用 Control-D(然后 shell 退出并返回到我正在使用 vi 编辑的文件)。What I generally use, when calling vi from a shell, is the
:shell
command to start a new shell, and then Control-D when I’m over (the shell then quits and goes back to the file(s) I was editing with vi).