[PLUG] To the VI Question

Jason Dagit dagit at engr.orst.edu
Mon Jul 15 19:09:50 UTC 2002


BTW, in emacs you could use a macro like this:

Posistion the cursor on the first line:
C-x (
C-e ,
C-d
C-x )
C-u num C-x e

Where num is the number of lines-1.

There are better ways I'm sure, but for a nice pedestrian approach it
works for me :)

For those curious, the C-x e runs the last macro and C-x ( and C-x ) mark
the beginning and end of a macro.

Jason

On Mon, 15 Jul 2002, Jason Dagit wrote:

>
> I deleted the email so quick that I can't reply, but here how I did it:
>
> :%s/\n/, /
> or
> :%s/\n/,/
>
> depends on if you want the extra space.
>
> The idea is that %s is the whole file, \n is the end of line.
>
> I hope this helps.
> Jason
>
>
> _______________________________________________
> PLUG mailing list
> PLUG at lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>





More information about the PLUG mailing list