温度如何。退出 Vi 编辑器并返回?

发布于 2024-12-14 09:23:13 字数 54 浏览 2 评论 0原文

我浪费了很多时间进行谷歌搜索,但没有找到解决方案。但我见过这个。 需要使用哪个组合键? 谢谢。

I have waste many time for googling, but didn't find solution. But I have seen this.
Which key combination need use?
Thanks.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

迷爱 2024-12-21 09:23:13

如果 vim 在终端中,您可以使用 Ctrl-Z 暂停它,然后说 fg 将其返回前台。您还可以使用 运行 shell! /bin/bash 然后退出返回编辑器。

You can suspend vim if it's in a terminal using Ctrl-Z and then say fg 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.

东京女 2024-12-21 09:23:13

使用control-Z。当您想返回 vi 时,请在 shell 提示符下使用 fg。

Use control-Z. When you want to get back into vi, use fg from the shell prompt.

寂寞陪衬 2024-12-21 09:23:13

如果你的意思是“退出”shell,你可以尝试这个命令:

:shell

返回到 Vi 。

exit

然后你就是一个 shell,你可以通过离开 shell或按 CTRL-D

If you mean a shell by "exit" you can try this command:

:shell

then you a shell and you can get back to Vi by leaving the shell with

exit

or by pressing CTRL-D.

初心未许 2024-12-21 09:23:13

当从 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).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文