How do I append a semicolon to every line in a file using :norm?
:%norm A;
The :%norm command runs normal mode commands on every line in the file (or a range).
:%norm A;
The :%norm command runs normal mode commands on every line in the file (or a range).
:10,20w newfile.txt
Use :10,20w newfile.
:10,20d
Specify a line range before a command.
:%normal A;
Use :%normal followed by normal mode keystrokes.
/\%>10l\%<20lpattern
Vim's \%>Nl and \%10l matches only after line 10 \%10l\%10l\%<20lold/new/g Combine with column restrictions for precise region targeting Tips Line numbers in \%