vim - 在没有提示的情况下使用makefile和vim

标签 vim makefile

我正在使用vim,即时通讯正在做很多事情

:make

在vim之内。唯一令人讨厌的是,我必须按两次ENTER键才能跳回到编辑器。如果一切正常,我只想直接回去。我想一次看到错误,然后按一个键直接跳到错误行。

有任何想法吗?

最佳答案

这被称为hit-enter prompt:

If you accidentally hit or and you want to see the displayed text then use |g<|. This only works when 'more' is set.

To reduce the number of hit-enter prompts:

  • Set 'cmdheight' to 2 or higher.
  • Add flags to 'shortmess'.
  • Reset 'showcmd' and/or 'ruler'.


另外,我确定您知道 the quickfix window ( :copen ) to navigate errors/messages 吗?

关于vim - 在没有提示的情况下使用makefile和vim,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8112487/

相关文章:

vim - L9 vim 插件有什么用?

vim - :g showing functions and comments below

python - Makefile - 我应该如何提取嵌入在 `pyproject.toml` 中的版本号?

C 预处理器与 C 编译器

makefile - GNU 制作 : build all sources in a different directory

c - 如何在 linux 中为 c 程序编写 makefile

HeadFirst C 中的 C Makefile 练习

python - 编写一个片段,删除最后的初始变量,只留下修改过的变量

function - Vim 函数将代码函数复制到剪贴板

c - 从 vim 编辑器为不同的文件执行 make 命令