Suppose I have the piece of text below with the cursor staying at the first A currently,
AAAA
BBB
CC
D
How can I add spaces in
I would do like Nigu. Another solution is to use :normal:
to enter VISUAL-LINE mode3j or jjj or /D to select the lines:norm I, the correct range ('<,'>) being inserted automatically:normal is probably a bit overkill for this specific case but sometimes you may want to perform a bunch of complex operations on a range of lines.