gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 21:44:03 26 4
gpt4 key购买 nike

我的文件包含一些内容。

      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.

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

最佳答案

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

  2. 当“wrap”打开“on”时,g$ 移动到 SCREEN 行的末尾。所以,它的功能与 $ 不同。例如:如果您想向下移动 2 行屏幕,请使用 2g$,如果您想向下移动 2 行(当换行打开时),请使用 2$

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

关于vim - 如何在vim编辑器中通过命令行按键移动到连续行的末尾,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19852313/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com