我想在vi或vim中只删除注释中的“去”。你能告诉我怎么做?vi vim删除特殊块中的单词
/*
the following gos should be deleted: in the comment
go
*/
the following go should not be deleted
go
/*
the following go should be deleted: in the comment
go
and some more words
go
*/
the following go should not be deleted
go
由于删除结果应该是如下:
/*
the following gos should be deleted: in the comment
*/
the following go should not be deleted
go
/*
the following go should be deleted: in the comment
and some more words
*/
the following go should not be deleted
go
感谢。
是否要删除注释块中的所有“go”?或者当他们单独坐在一条线上时,那些“走”出来?请解释为什么你的评论块中仍然有“预期的结果”。 – Kent