我正在使用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/