To be prompted for confirmation before each replacement, add the c flag at the end: :%s/old_text/new_text/gc