【发布时间】:2012-07-12 21:04:52
【问题描述】:
我正在学习 power of g 并想删除所有包含表达式的行,直到句子的末尾(用句号标记)。像这样:
There was a little sheep. The sheep was black. There was another sheep.
(运行命令查找所有类似There was的句子并删除到下一个句号。
The sheep was black.
我试过了:
-
:g/There was/d\/\.试图“删除到下一个期间”,但我收到trailing characters错误。 -
:g/There was/df.但得到一个df. is not an editor command error.
有什么想法吗?
【问题讨论】:
标签: vim