如何在 Vim 窗口内打开 Shell? [英] How can I open a Shell inside a Vim Window?
本文介绍了如何在 Vim 窗口内打开 Shell?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我可以在 Vim 中使用 :shell 命令打开 shell,但是我不能在编辑文件的同时使用 shell.
I can open a shell by using the :shell command in Vim, however I can't edit a file and at the same time use the shell.
有没有办法在多个窗口(或选项卡)中拆分 Vim,并在其中一个窗口(或选项卡)中打开一个 shell?
Is there any way to split Vim in many Windows (or tabs), and have a shell opened in one of them?
推荐答案
Neovim 和 Vim 8.2
通过 :ter[minal]
命令原生支持这一点.
Neovim and Vim 8.2
support this natively via the :ter[minal]
command.
参见终端窗口
文档中的详细信息.
See terminal-window
in the docs for details.
这篇关于如何在 Vim 窗口内打开 Shell?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文