在 Vim 的命令模式中导航 [英] Navigating in Vim's Command Mode

查看:29
本文介绍了在 Vim 的命令模式中导航的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是学习 Vim 的长期 emacs 用户.Emacs 允许我使用与在任何其他缓冲区中相同的导航键盘快捷键在迷你缓冲区(我在其中发出 C-x C-s 之类的命令)中导航.例如,即使在迷你缓冲区中,我也可以使用 C-f 向前导航一个字符.我也可以使用箭头键,但它们太远了.

I am a long time emacs user learning Vim. Emacs lets me navigate in the mini-buffer (where I issue commands like C-x C-s) using the same navigation keyboard shortcuts as in any other buffer. For example, I can navigate forward one character using C-f, even while in the mini-buffer. I could also use the arrow keys, but they are too far away.

是否有任何键盘快捷键可以在 Vim 的命令模式 (:) 中导航,而不使用箭头键——相当于 emacs C-f、C-b?谢谢.

Is there any keyboard shortcut to navigate in Vim's command mode (:), without using the arrow keys -- equivalent to emacs C-f, C-b? Thanks.

推荐答案

添加到 Greg Hewgill 的答案中,您可以使用 q: 打开命令行窗口,您可以在其中拥有任何 Vim 编辑功能就在你手上.

Adding to Greg Hewgill's answer, you can use q: to open the command-line window, where you have any Vim editing power at your hand.

这篇关于在 Vim 的命令模式中导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆