开发者

Repeating a navigation command in vi

开发者 https://www.devze.com 2023-01-15 22:28 出处:网络
How do I repeat a navigation command in vi? 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 repe

How do I repeat a navigation command in vi?

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"开发者_JAVA技巧.

P.S. Also, what command goes to the next page in a document?


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).

Page up (back) is Control-B; page down (forward) is Control-F. Half-pages are Control-U (up) and Control-D (down).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号