Append a semicolon on lines two to four
:2,4normal! A;
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2one
two
three
four
fiveCursor on line 1, column 1one
two
three
four
fiveCursor on line 1, column 1one
two;
three;
four;
fiveCursor on line 4, column 5Run a Normal-mode edit over an explicit line range.
Command entered · ready to apply
Run a Normal-mode edit over an explicit line range
Before & after
one
two
three
four
fiveCursor on line 1, column 1one
two;
three;
four;
fiveCursor on line 4, column 5Start in Normal mode, at line 1, column 1 (one-based). The ! on normal prevents mappings from changing A;. Each selected line receives one semicolon. Type :2,4normal! A; and press Enter.
Details & Vim help
Example replayed in Vim
Run a Normal-mode edit over an explicit line range.
The ! on normal prevents mappings from changing A;. Each selected line receives one semicolon.