gvim: doc string editing

jm.suresh@no.spam.gmail.com jm.suresh at gmail.com
Sun Feb 11 09:23:04 EST 2007


On Feb 11, 7:01 pm, Neil Cerutti <horp... at yahoo.com> wrote:
> On 2007-02-11, jm.sur... at no.spam.gmail.com <jm.sur... at gmail.com> wrote:
>
> > Hi, I am using gvim, and am looking for a way to tell gvim to
> > automatically wrap long lines into multiple lines ( by
> > automatically inserting the newline character) when I edit doc
> > strings. I am sure somebody must have done this.
>
> If tw (textwidth) is set to some apposite number, then it should
> just work (unfortunately, this will also cause your code to wrap
> unless you set up the comment strings properly for Python).
> Alternatively, you can use the gq formatting command to wrap the
> comment after it is composed.
>
> Do :h format_comments for the full dope.
>
> --
> Neil Cerutti

gq works great. Thanks.
-
Suresh




More information about the Python-list mailing list