1

I'm using vim (actually, neovim) on macOS and whenever I run a command which outputs text (e.g. :version) and switch to another Desktop (so iTerm looses focus) and get back to it, the output window/pane is gone.

How can I stop it from automatically closing, even when the Press ENTER or type command to continue is shown? (which is actually a lie, as it continues without me pressing ENTER or typing a command)

  • 1
    probably a FocusLost/FocusGaines autocommand that closes the message – Christian Brabandt Dec 30 '16 at 12:43
3

It's a known Neovim bug: Focus events make messages disappear (as if Enter was pressed).

The workaround is either using Vim (which doesn't have this bug) or using a terminal emulator which doesn't send focus events (or disable sending focus events for your terminal emulator, if possible).

  • Any idea if I can disable focus events sending in iTerm? – Iulian Onofrei Jan 4 '17 at 6:34

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.