替換為互動式批准

:s/foo/bar/c 在行上標記 foo 的第一個例項,並要求確認替換為 bar

:%s/foo/bar/gc 連續標記檔案中 foo 的每個匹配項,並要求確認替換為 bar