How do I scroll through a terminal using Vim 8.1's new terminal/termpack support?

后端 未结 3 1808
栀梦
栀梦 2021-01-31 01:46

I love the new terminal support that Vim 8.1 offers and I like that up/down are mapped to the terminal, so that you can select prior commands. How can I scroll up and down the t

3条回答
  •  长情又很酷
    2021-01-31 02:28

    You have to switch to 'Terminal-Normal mode' with 'Ctrl-w N', (that's Ctrl-w, capital N). Then you can use the usual Vim commands to move around, cut, copy and paste.

    Once finished, just hit either 'i' or 'a' to resume using the terminal as before.

提交回复
热议问题