December 6, 2005

Adding Text To Special Lines

Category: VI — Raffael Marty @ 1:22 am

I need to remember this one:

:g/some text/s/$/,more_data

This will add another column of data to all the lines with “some text”. Simple but useful.

No Comments »

No comments yet.

RSS feed for comments on this post. | TrackBack URI

Leave a comment

XHTML ( You can use these tags): <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> .