Step 1: Enable the visual mode.
ctrl + v
Step 2: Select all the lines by moving the cursor.
Step 3: Enable the insert mode.
shift + i
Step 4: Apply operations in any one line.
Step 5: Exit the insert mode and the operation will be automatically applied to all the other lines.
esc