Re: Function editing with Vim throws IndentError

2008-08-04 Thread Ethan Furman
Lawrence D'Oliveiro wrote: In message <[EMAIL PROTECTED]>, Matimus wrote: On Jul 24, 9:32 pm, Lawrence D'Oliveiro <[EMAIL PROTECTED] central.gen.new_zealand> wrote: In message <[EMAIL PROTECTED]>, Matimus wrote: On Jul 24, 2:54 am, Lawrence D'Oliveiro <[EMAIL PROTECTED] central.gen.new_z

Re: Function editing with Vim throws IndentError

2008-08-04 Thread Ethan Furman
Matimus wrote: On Jul 24, 9:32 pm, Lawrence D'Oliveiro <[EMAIL PROTECTED] central.gen.new_zealand> wrote: In message <[EMAIL PROTECTED]>, Matimus wrote: On Jul 24, 2:54 am, Lawrence D'Oliveiro <[EMAIL PROTECTED] central.gen.new_zealand> wrote: In message <[EMAIL PROTECTED]>, Matimus wro

Re: Function editing with Vim throws IndentError

2008-07-26 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Thomas Troeger wrote: > Finally, I'd like to throw in this one from the Linux kernel sources, > from `Documentation/CodingStyle: > > > > Chapter 1: Indentation > > Tabs are 8 characters, and

Re: Function editing with Vim throws IndentError

2008-07-26 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Matimus wrote: > On Jul 24, 9:32 pm, Lawrence D'Oliveiro <[EMAIL PROTECTED] > central.gen.new_zealand> wrote: > >> In message >> <[EMAIL PROTECTED]>, >> Matimus wrote: >> >> > On Jul 24, 2:54 am, Lawrence D'Oliveiro <[EMAIL PROTECTED] >> > central.gen.new_zealand> w

Re: Function editing with Vim throws IndentError

2008-07-25 Thread Matimus
On Jul 24, 9:32 pm, Lawrence D'Oliveiro <[EMAIL PROTECTED] central.gen.new_zealand> wrote: > In message > <[EMAIL PROTECTED]>, Matimus > wrote: > > > On Jul 24, 2:54 am, Lawrence D'Oliveiro <[EMAIL PROTECTED] > > central.gen.new_zealand> wrote: > >> In message > >> <[EMAIL PROTECTED]>, > > >> Matim

Re: Function editing with Vim throws IndentError

2008-07-25 Thread Thomas Troeger
Lawrence D'Oliveiro wrote: Specified by whom? The most common setting these days is 4 columns. Where? I've randomly seen code snipplets that indent using spaces or, worse, tabstop != 8, but most code I've come across uses tabstop width 8, which is how it was meant to be from the beginning of

Re: Function editing with Vim throws IndentError

2008-07-24 Thread Timothy Grant
On Thu, Jul 24, 2008 at 9:32 PM, Lawrence D'Oliveiro <[EMAIL PROTECTED]> wrote: > In message > <[EMAIL PROTECTED]>, > Matimus > wrote: > > > On Jul 24, 2:54 am, Lawrence D'Oliveiro <[EMAIL PROTECTED] > > central.gen.new_zealand> wrote: > >> In message > >> <[EMAIL PROTECTED]>, > >> > >> Matimus wr

Re: Function editing with Vim throws IndentError

2008-07-24 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Matimus wrote: > On Jul 24, 2:54 am, Lawrence D'Oliveiro <[EMAIL PROTECTED] > central.gen.new_zealand> wrote: >> In message >> <[EMAIL PROTECTED]>, >> >> Matimus wrote: >> > That isn't the standard. With that setup tabs will show up as 4 >> > spaces, and still confu

Re: Function editing with Vim throws IndentError

2008-07-24 Thread Matimus
On Jul 24, 2:54 am, Lawrence D'Oliveiro <[EMAIL PROTECTED] central.gen.new_zealand> wrote: > In message > <[EMAIL PROTECTED]>, > > Matimus wrote: > > That isn't the standard. With that setup tabs will show up as 4 > > spaces, and still confuse you. > > Why should that be confusing? The most common

Re: Function editing with Vim throws IndentError

2008-07-24 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Matimus wrote: > That isn't the standard. With that setup tabs will show up as 4 > spaces, and still confuse you. Why should that be confusing? The most common tab-stop setting is 4 columns. -- http://mail.python.org/mailman/listinfo/python-list

Re: Function editing with Vim throws IndentError

2008-07-23 Thread Matimus
On Jul 22, 2:02 pm, ptn <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I have a weird problem.  Say I have a .py file with some functions in > it, like this: > >     # (...) >     def foo(): >         print("bar") > > When I open it and add a line to one of the functions, > >     # (...) >     def

Re: Function editing with Vim throws IndentError

2008-07-23 Thread Thomas Troeger
ptn wrote: Hi everybody, I have a weird problem. Say I have a .py file with some functions in it, like this: [...] Could someone provide some pointers? Thanks, Pablo Torres N. Have you enabled the `list' option to see which characters are acutally on the lines of interest? Try out `:se

Re: Function editing with Vim throws IndentError

2008-07-22 Thread Asun Friere
On Jul 23, 7:02 am, ptn <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I have a weird problem. Say I have a .py file with some functions in > it, like this: > > # (...) > def foo(): > print("bar") > > When I open it and add a line to one of the functions, > > # (...) > def

Re: Function editing with Vim throws IndentError

2008-07-22 Thread Timothy Grant
On Tue, Jul 22, 2008 at 2:02 PM, ptn <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I have a weird problem. Say I have a .py file with some functions in > it, like this: > ># (...) >def foo(): >print("bar") > > When I open it and add a line to one of the functions, > ># (...)

Function editing with Vim throws IndentError

2008-07-22 Thread ptn
Hi everybody, I have a weird problem. Say I have a .py file with some functions in it, like this: # (...) def foo(): print("bar") When I open it and add a line to one of the functions, # (...) def foo(): troz = "bar" print(troz) I get the following trac