0

I've been using vim for a long time and got used to issuing:

:!

to peek at the command prompt behind the vim "window" working on Terminal.app in Mac OS where I can see old commands and their outputs.

I'm attempting to switch to neovim, but issuing just :! appears to behave differently and shows nothing but a blank line below the neovim command prompt.

Is there a way to see the former commands and output in neovim?

2
  • You may want :suspend or C-z
    – D. Ben Knoble
    Commented Jun 27, 2022 at 20:06
  • oh, I didn't think to do it that way. Then I can issue fg to go back. Not bad. Commented Jun 27, 2022 at 21:47

1 Answer 1

1

I suggest :suspend or Ctrl-z, which put vim in the background, returning you to the shell from which you launched it. Then use your shell's normal job-control commands to return (e.g., fg).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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