gpt4 book ai didi

linux - 如何在 vi 编辑器中删除特定行号?

转载 作者:太空宇宙 更新时间:2023-11-04 05:51:26 25 4
gpt4 key购买 nike

EX:如果文本文件中有 10000 行,我只需要删除第 777 行。

最佳答案

尝试:[lineno.]d

示例:

如果要删除第50行

使用命令:50d

来源Vim: Can you delete a specific line number from another line?

关于linux - 如何在 vi 编辑器中删除特定行号?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35219073/

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