如何通过在vim编辑器中按命令行中的键移动到连续行的末尾

Cha*_*dru 2 vim

我的文件包含一些内容.

      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.
Run Code Online (Sandbox Code Playgroud)

给定的行是同一行的延续.如何通过按单键移动光标到第一行的结尾.

我的_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.
Run Code Online (Sandbox Code Playgroud)

通过按singe命令或键我需要移动到我的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.
Run Code Online (Sandbox Code Playgroud)

如果有任何办法,请告诉我.

gre*_*ory 5

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

  2. 当"wrap"变为"on"时,则g$移动到SCREEN行的末尾.因此,它的功能与a不同$.例如:如果要向下移动2个屏幕行2g$,如果要向下移动2行(打开包装时),请使用2$.

有关详细信息,你可以做:help $:help g$.