:s
to replace the first occurrence of text on the current line.
:s
with line numbers or ranges (e.g., :90,110s
) to replace text within defined line ranges.
:s
with the g
flag (:s/pattern/replacement/g
) to replace all occurrences of text on a line or throughout the file.
:%s/^./\u&/g
.