在Vi中,当我按下$
时,它会转到行中的最后一个字符而不是行字符的末尾?我如何在一次击键中转到行字符的结尾,什么是删除行字符结尾的最快方法?
最佳答案
How come in Vi, when I hit
$
, it goes to the last character in the line instead of the end of the line character?
因为这足以满足您可能想要实现的所有目标。
How would I go to the end of the line character in one keystroke
您基本上不需要。您只需要在下一步中执行不同的操作即可,具体取决于要通过换行符实现的功能。例如。:
what is the fastest way to delete the end of the line character?
只需按
J
加入行即可。 (如果启用了autoindent
或 friend ,则甚至会为您从连接的行中删除缩进。)如果您不希望刚获得多余的空格字符,请继续添加x
;或使用gJ
开头。
关于vim - 移到Vi中行字符的末尾,超过行中的最后一个字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3664924/