`. move to the last edit.
# :%s/text/replacement text/g search through the entire document for text and replace it with replacement text.
# :%s/text/replacement text/gc search through the entire document and confirm before replacing text.
vim tip
最新推荐文章于 2025-12-03 14:58:22 发布
本文介绍如何使用Vim编辑器进行全局搜索及批量替换操作,包括确认替换选项,适用于需要快速修改大量文本内容的场景。

650

被折叠的 条评论
为什么被折叠?



