【发布时间】:2023-03-21 07:27:01
【问题描述】:
我希望能够使用 vim 删除 txt 文件中的所有空格
update reg04_rpt_animreg set birthdate = ' 2016-01-21 ' where animalid = ' TZN000192803889 ';
update reg04_rpt_animreg set birthdate = ' 2015-07-05 ' where animalid = ' TZN000192803890 ';
update reg04_rpt_animreg set birthdate = ' 2011-12-12 ' where animalid = ' TZN000192803891 ';
update reg04_rpt_animreg set birthdate = ' 2013-05-05 ' where animalid = ' TZN000192803893 ';
update reg04_rpt_animreg set birthdate = ' 2013-04-02 ' where animalid = ' TZN000192803894 ';
update reg04_rpt_animreg set birthdate = ' 2015-05-16 ' where animalid = ' TZN000192803895 ';
我在 vim 中使用了以下命令,但没有得到预期的输出
:g/^\s*$/d
【问题讨论】:
-
如果您向我们展示所需的输出会更容易。
标签: vim