【发布时间】:2015-06-11 23:33:31
【问题描述】:
我只想在 vi 或 vim 中删除评论中的“go”。请告诉我怎么做?
/*
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”吗?或者当他们独自坐在整排时只是那些“走”?请解释为什么在预期结果中您的评论块中仍然有“go”。