Re: gvim: doc string editing
On Feb 11, 7:01 pm, Neil Cerutti <[EMAIL PROTECTED]> wrote: > On 2007-02-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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 -- http://mail.python.org/mailman/listinfo/python-list
Re: gvim: doc string editing
On 2007-02-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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 -- http://mail.python.org/mailman/listinfo/python-list
gvim: doc string editing
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. - Suresh -- http://mail.python.org/mailman/listinfo/python-list