Indenting lines 400..457 help
Sean 'Shaleh' Perry
shalehperry at attbi.com
Wed Apr 10 17:23:57 EDT 2002
On 10-Apr-2002 Ned Harvey wrote:
> For the life of me, I can't find any easy way to indent (or unindent) lines
> numbered 400..457 or whatever. Does anyone have any good suggestions?
>
> I'm usually a vi user, but I'll happily learn a command of some other
> format. I've tried
> :400,457s/(.*)/ \1/g
> and a ton of variations of the same idea, but it seems that the
> search/replace doesn't do what I expect it to.
>
> Thanks for your help.
>
as an ex-vi user I will resist the urge to point out how easy this is under
python mode in emacs (-:
you are thinking about the problem too hard. What you want to do is simply add
four mor spaces to the beginning of the line right?
:400,457s/^/ /
voila.
More information about the Python-list
mailing list