在插入模式下移动到行首 [英] Move to the beginning of line while in Insert mode

查看:21
本文介绍了在插入模式下移动到行首的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以使用:

  1. 主页插入模式
  2. Esc + i 退出插入模式并再次输入,有效地转到行首.
  1. Home in insert mode
  2. Esc + i to exit insert mode and enter it again, effectively going to the beginning of line.

但两者都不满足我.在第一种情况下,我必须倾斜我的头才能打Home,因为我不能盲目地打它.在第二种情况下,我的左臂必须离开主排才能按 Esc,这也很烦人.

But neither satisfies me. In first case I have to tilt my head to hit Home, because I can't blindly hit it. In second case my left arm has to leave the home row to hit Esc, which is annoying too.

有什么想法吗?

推荐答案

Ctrl+O 而在插入模式下,您将进入命令模式,只能按一个键.因此 Ctrl+O 然后 Shift+I 应该可以完成您要查找的内容.

Ctrl+O whilst in insert mode puts you in command mode for one key press only. Therefore Ctrl+O then Shift+I should accomplish what you're looking for.

这篇关于在插入模式下移动到行首的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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