gpt4 book ai didi

python - 最大化 vim 的快速修复窗口?

转载 作者:行者123 更新时间:2023-11-30 23:16:02 29 4
gpt4 key购买 nike

我正在使用 vim 和 python 编程,并使用 tpope's vim-dispatch通过运行当前文件

:Dispatch python main.py

程序的打印输出被定向到quickfix窗口。不幸的是,只有前几行是可见的。要查看所有输出,我必须手动调整快速修复窗口的大小。

到目前为止,将光标移动到快速修复窗口后,我费力的解决方法是 <C-W><C-o> ,这使得快速修复窗口成为唯一可见的窗口。然后我通过 <C-o> 返回我的来源.

有没有办法切换快速修复窗口的特定大小?或者:导航到快速修复窗口、最大化它,然后返回到源代码中的最后一个位置的更好方法是什么?

最佳答案

:copen命令支持可选的[height]论据:

:cope[n] [height] Open a window to show the current list of errors.

When [height] is given, the window becomes that high
(if there is room). When [height] is omitted the
window is made ten lines high.

如果插件打开了quickfix(并且您无法配置它),您可以通过 :autocmd 解决此问题(因为可以通过其 qf 文件类型检测到快速修复窗口):

:autocmd FileType qf wincmd _

关于python - 最大化 vim 的快速修复窗口?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27900371/

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