在插入模式下移至 VI 中当前行的行尾或行首

Move to the end or beginning of the current line in VI when in insert mode

我对VI编辑器的了解不精通,一直按-> (Right Arrow)键移动到行尾很麻​​烦

在 google 上搜索时,我发现 exiting the insert mode 然后按 $ 键会将光标移动到行尾。它工作正常,但我仍然希望能够在 insert 模式下将光标移动到当前行的末尾或开头。

如有任何帮助,我们将不胜感激。

提前致谢

Linux中按结束,然后fn[=14= OSX.

中的右箭头

解决方法很简单

End 会强制光标到行尾,Home 会强制光标到行首 Linux VI editor