我正在学习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.
有什么想法吗?