如何使用 Vim 8.1 的新终端/termpack 支持滚动终端? [英] How do I scroll through a terminal using Vim 8.1's new terminal/termpack support?
问题描述
我喜欢 Vim 8.1 提供的新终端支持,我喜欢向上/向下映射到终端,以便您可以选择先前的命令.但是,如何在终端上下滚动?目前,在我的 GDB 程序输出窗口中,我看到这样的字符:
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 terminal however? Currently, in my GDB program output window I see characters like this:
^[[A^[[A^[[A^[[A^[[B^[[B^[[B^[[D^[[D^[[
^[[A^[[A^[[A^[[A^[[B^[[B^[[B^[[D^[[D^[[
在终端窗口中,它只是在之前的命令之间移动.
And in the terminal window it just moves between prior commands.
推荐答案
您必须使用 Ctrl 切换到终端-正常模式"w、N(即 Ctrl-w、大写 N).然后你可以使用通常的 Vim 命令来移动、剪切、复制和粘贴.
You have to switch to 'Terminal-Normal mode' with Ctrlw, N (that's Ctrl-w, capital N). Then you can use the usual Vim commands to move around, cut, copy and paste.
完成后,按 i 或 a 继续使用终端.
Once finished, press either i or a to resume using the terminal as before.
这篇关于如何使用 Vim 8.1 的新终端/termpack 支持滚动终端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!