edit start of the multiple lines in vim

Written in

by

there are 2 ways to do that:
1) you can use regular expressions – that is bit too heavy lifting. You need to count how many lines you want to change etc.
2) you can use following key combination:

CTRL+v
select lines you want to change
press capital I
write whatever (like ‚#‘)
press ESC

and voila!

Tags