繁体   English   中英

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

[英]How to move to the end of the continuous line by pressing keys in command line in vim editor

我的文件包含一些内容。

      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.

通过按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.

如果有办法,请告诉我。

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

  2. 当“ wrap”打开时, g$移至SCREEN行的末尾。 因此,它的功能与$有所不同。 例如:如果要向下移动2行,请使用2g$ ;如果要向下移动2行(当自动换行时),请使用2$

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM