Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
259 views
in Technique[技术] by (71.8m points)

vim - 如何在Vim中移动到行尾?(How do I move to end of line in Vim?)

我知道如何一般在命令模式中移动,特别是跳到线路等。但是跳到我目前所在线路末端的命令是什么?

  ask by salt.racer translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Just the $ (dollar sign) key.

(只需$ (美元符号)键。)

You can use A to move to the end of the line and switch to editing mode (Append).

(您可以使用A移动到行尾并切换到编辑模式(追加)。)

To jump the last non-blank character, you can press g then _ keys.

(要跳过最后一个非空白字符,可以按g然后按_键。)

The opposite of A is I (Insert mode at beginning of line), as an aside.

(A的反面是I (行开头的插入模式),旁边。)

Pressing just the ^ will place your cursor at the beginning of the line.

(只按^会将光标放在行的开头。)


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...