在vi中重复导航命令 [英] Repeating a navigation command in vi
问题描述
如何在vi中重复导航命令?
How do I repeat a navigation command in vi?
例如,我执行命令20j
将光标向下移动20行,并尝试按.
重复该命令,但是它显示没有重复的命令".
For example, I execute the command 20j
which moves the cursor down 20 lines, and I tried hitting .
to repeat that command, but it says "No command to repeat".
P.S.另外,什么命令转到文档的下一页?
P.S. Also, what command goes to the next page in a document?
推荐答案
没有重复上一个导航命令的快捷方式-您必须重新输入它,或者设置自己的某种快捷方式(:map
或类似).
There isn't a shortcut to repeat the last navigation command - you have to retype it, or set up some sort of shortcut of your own (:map
or similar).
上一页(后一页)是 Control-B ;下一页(向前)是 Control-F .半页是 Control-U (向上)和 Control-D (向下).
Page up (back) is Control-B; page down (forward) is Control-F. Half-pages are Control-U (up) and Control-D (down).
这篇关于在vi中重复导航命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!