Esc + :$s/mumbai/pune/g
Reveal answer
Fill a bubble to check yourself
Esc + :$s/mumbai/pune/g
To put cursor at the end of the next occurance of either Mumbai or Pune
To Find all occurrence of Mumbai and Replace with Pune with confirmation
To Find all occurrence of Mumbai and Replace with Pune without confirmation
To put cursor at the beginning of the next occurance of either Mumbai or Pune
The vim command :$s/mumbai/pune/g substitutes all occurrences of 'mumbai' with 'pune' on the last line. The 'g' flag means global replacement within that line, and no confirmation is requested. Option B would require the 'c' flag (:s/mumbai/pune/gc) for confirmation prompts.