2

我的文件包含一些内容。

      This file is just for testing and it may contain no about about any related data. 
      But used for copy of move the content to one file to another.

给定的行是同一行的延续。如何通过单键将光标移动到第一行的末尾。

我的 _cursor 在这里等着

      _This file is just for testing and it may contain no about about any related data.
       But used for copy of move the content to one file to another.

通过按单个命令或键,我需要移动到光标_第一行的末尾。

      This file is just for testing and it may contain no about about any related data._
       But used for copy of move the content to one file to another.

如果有什么办法,请告诉我。

4

1 回答 1

5
  1. $您可以使用符号移动到 vim 中的行尾。您可以使用前面的数字$n末端向下移动。例如,2$从光标移到第二行的末尾。

  2. 当“wrap”打开“on”时,g$移动到 SCREEN 行的末尾。因此,它在功能上与$. 例如:如果你想向下移动 2 行屏幕使用2g$,如果你想向下移动 2 行(当换行打开时)使用2$

有关更多详细信息,您可以执行:help $:help g$

于 2013-11-08T05:59:40.647 回答