- Published on
Vim Insert at the Beginning/End of Lines
Beginning
- Press
Escto entercommand mode - Use
Ctrl+vto enter visual block mode - Move
Up/Downto select the columns of text in the lines you want to comment - Then hit
Shift+iand type the text you want to insert. - Then hit
Esc
End
Insert * at the end of each line.
:%s/$/\*/g