小编Roh*_*iar的帖子

在 Neovim 中将默认 shell 更改为 powershell

目前,nvim 使用的默认 shell 是cmd.exe我尝试通过在 nvim 配置中将 shell 设置为 powershell 来更改它,但这不起作用,所以我在 nvim 命令行中尝试了以下命令:

:let &shell = 'path/to/powershell.exe'
Run Code Online (Sandbox Code Playgroud)

Echo shell 命令输出 powershell 路径,当我执行时:terminal它打开了一个powershell选项卡,但退出并重新打开 nvim 后它仍在使用cmd.exe

如何将默认 shell 永久更改为 powershell?

powershell vim shell

3
推荐指数
1
解决办法
5045
查看次数

标签 统计

powershell ×1

shell ×1

vim ×1