gpt4 book ai didi

windows - Windows 上的 gVIM : execute buffer and paths with spaces

转载 作者:可可西里 更新时间:2023-11-01 14:32:49 24 4
gpt4 key购买 nike

在 gVim for windows 中,可以通过 :!% 命令执行当前缓冲区。但是,不幸的是,缓冲区文件名提供给 cmd.exe 时没有引号,所以如果文件路径有空格,gVim 将无法执行它。

是否有任何简单的方法来修复它以便能够从 gVim 中执行 .bat、.py 等?

最佳答案

这是我的猜测,我没有 windows 机器可以尝试。尝试

:!python "%"

:!"%"

信用: hell 之眼

关于windows - Windows 上的 gVIM : execute buffer and paths with spaces,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1531232/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com