Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using makefiles and vim without prompt

Tags:

vim

makefile

I'm using vim and im doing a lot of

:make

within vim. The only thing that is really annoying is that I have to press ENTER twice to jump back to the editor. I just want to go directly back if everything worked out fine. And I want to see the error once and press a key to jump directly to the error line.

Any ideas?

like image 660
Joachim Avatar asked Nov 13 '11 15:11

Joachim


2 Answers

This is known as the 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'.

Also, I'm sure you are aware of the quickfix window (:copen) to navigate errors/messages?

like image 183
sehe Avatar answered Sep 28 '22 08:09

sehe


This can happen when the 'cmdheight' varible is < 2.

like image 34
Tom Whittock Avatar answered Sep 28 '22 07:09

Tom Whittock