4

I have a terminal window in vim and need to see the output that is on a higher line than is shown. How do I "scroll" up to see that?

Command that I opened my terminal with:

:term bash
  • have you tried CTRL+Y or CTRL+E? – mael' Jun 13 '19 at 19:46
  • @mael' That works in the editor window but not the terminal window. Thanks for the suggestion though – William Rusnack Jun 13 '19 at 20:00
  • 2
    Might be a good question for vi.stackexchange.com – Nathaniel M. Beaver Jun 18 '19 at 18:42
  • Need to join that thanks – William Rusnack Jun 18 '19 at 19:31
11
+50

If you press Ctrl + w, followed by Shift + n, it pauses the terminal, and you can navigate it like any buffer. Pressing i takes you back into the terminal as you were before.

| improve this answer | |
0

If you are using neovim, press Ctrl + \ followed by Ctrl + n to enter normal mode in a terminal.

The help (:help terminal-input) says the following:

In this mode all keys except <C-\><C-N> are sent to the underlying program. Use <C-\><C-N> to return to normal-mode. CTRL-\_CTRL-N

| improve this answer | |

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.