Is there any option to replace the first occurrence without asking for confirmation in vim?
I want to replace New York with \place{New York}
in the first occurrence only without asking for confirmation. I used this code:
silent! /\\begin{text}/,/\\end{textit}/s/New York/\\place{New York}/g
> \begin{text}..[paragraphs]...\end{textit}
New York
may be contained 10 times in the paragraph.