Block insert with vim
0
Vi block insert (i.e // in front of a block of lines)
1 2 3 4 5 6 7 8 9 10 11 |
Method #1) - vi sameple_file.txt - Ctrl + V - Make selection by moving the cursor (j/k/l/h) - Shift + i - insert the text "//" - Press ESC to finish. Method #2) - visually select the text rows (using V as usual) - :norm i# |