6

When I used :silent to run a terminal command in the background, my vim screen goes blank, until I navigate through my code, at which point each line I move to reappears.

What gives?

8

This works as designed, and is documented under :help :silent:

      ":silent" will also avoid the hit-enter prompt.  When
      using this for an external command, this may cause the
      screen to be messed up.  Use |CTRL-L| to clean it up
      then.

You can also use the :redraw command.

  • 2
    I found I needed to use redraw! - without the bang it was like I'd done nothing – JonnyRaa Jan 30 '18 at 10:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.