PSU uses emacs?
Neil Schemenauer
nas at arctrix.com
Fri Jan 19 10:35:11 EST 2001
On Fri, Jan 19, 2001 at 01:25:49PM -0500, D-Man wrote:
> On Fri, Jan 19, 2001 at 05:55:45PM +0100, Alex Martelli wrote:
> > to remove those silly control-M (carriage-return) that using
> > some other editor may have inserted, :%s/^Q^M// is what one
> > types
>
> What does the % mean here? I usually use :g/^V^M/s/// (working on NT
> or in cygwin's console vim).
It means: do the command on all lines in the buffer. Your g
command selects lines that match "^M" and does a substitution.
The end result is the same.
Neil
More information about the Python-list
mailing list