Neovim终端支撑
这是我的config init.vim: https://github.com/ neuralnine/config-files/blob/master/init.vim
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
这是我的config init.vim: https://github.com/ neuralnine/config-files/blob/master/init.vim
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(1)
问题
您需要在为此,看起来这个插件已经不再维护,因为上一个提交是4年前。
无论如何,替代修复
作为替代方法,您可以尝试使用内置
:终端
命令,该命令也可以为您打开终端。这是您可以使用的一些映射:这将在右侧创建一个新窗口,并为您启动一个新的外壳。您还可以将以下片段添加到
init.vim
:如果您打开该终端窗口,它应该自动进入插入模式。
还有另一个提示:
如果您想能够滚动终端,请使用此映射。此映射将使您将插入模式留在终端中,以便能够使用正常的vim-keybindings滚动终端缓冲器。
The problem
You'd need to create an issue on
vim-terminal
for that but it looks like that this plugin isn't maintained anymore since the last commit is 4 years ago.Alternative fix
Anyway as an alternativ you can try to use the builtin
:terminal
command which can open up a terminal for you as well. Here's a little mapping which you can use:This will create a new window on the right and starts a new shell for you. You can also add the following snippet to your
init.vim
:which should bring you automatically into insert mode if you open up that terminal-window.
Also another hint:
use this mapping if you want to be able to scroll through your terminal. This mapping will let you leave the insert mode in your terminal to be able to scroll through the terminal-buffer with the normal vim-keybindings.