[wellylug] vi(m) question.
Tim Thomson
tim.thomson at paradise.net.nz
Sat May 8 11:26:06 NZST 2004
Hi there,
You can also use vim's visual block mode commands to do this sort of thing.
Go to the start of the text, hit CTRL-V to enter visual block mode.
Move the cursor down to the bottom of the text you want to add to. Hit
I, then type, then hit esc.
You can also use this mode to delete text, and do lots of funky stuff.
hello xyz abc
hello qqwe tertertertet
hello 123 eeeeeee
HTH,
Tim.
On Fri, May 07, 2004 at 07:40:09PM +1200, Enkidu wrote:
>
> I wan add something to the start of every line. Every line starts
> with e space eg
>
> xyc
> qqertertertet
> 123 eeeeeee
>
> Suggested solution is something like:
>
> :%s/^\w/addit /iga
More information about the wellylug
mailing list