在 gvim 中,当我想执行类似 :!ls
的命令时,它会将此命令发送到常规命令提示符 cmd.exe
。所以,我不能使用 ls
或 pwd
或任何常规的 linux 命令。但是,PowerShell 支持大多数 Linux 类型的命令。那么,如何将 PowerShell 设置为 vim 的默认 shell?
最佳答案
将 vim shell
变量设置为 PowerShell 可执行文件:
set shell=C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
关于powershell - 让 Gvim 与 Powershell 一起工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34332359/