Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I disable the "Press ENTER or type command to continue" prompt in Vim?

Tags:

vim

People also ask

How do I press enter in Vim?

This mode allows you to enter text into your document. You can enter insert mode by pressing the i key.


I'm not sure how to do it globally though for one command:

:silent !<command>

Be sure to include a space after silent


Found out one workaround: Add an extra <CR> to the map command.

map <F5> :wall!<CR>:!sbcl --load foo.cl<CR><CR>

:help hit-enter

Set the cmdheight to 2, in my vimrc (:e $MYVIMRC):

:set cmdheight=2

More info here.


This is how I dealt with the problem that running an external program through silent messes up the screen in text-mode vim (in my experience, gvim doesn't suffer from this problem):

command! -nargs=1 Silent
\ | execute ':silent !'.<q-args>
\ | execute ':redraw!'

Use it instead of the regular silent command:

:Silent top