26.9.2013

edit start of the multiple lines in vim

Filed under: bash,Linux,perl,scripting,Unix,vim — nax @ 13:06

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!

Comments are closed.

Powered by WordPress