Re: Python + vim + spaces vs tab

2010-06-09 Thread Robin Becker
On 09/06/2010 13:06, Jean-Michel Pichavant wrote: the idea is to switch between using tabs and spaces depending on the original source. If the input is all spaces we switch to tabs internally and then convert on output. If it was tabbed we keep that, if mixed I think it keeps that. This

Re: Python + vim + spaces vs tab

2010-06-09 Thread Jorgen Grahn
On Mon, 2010-06-07, Neil Cerutti wrote: > On 2010-06-07, Jean-Michel Pichavant wrote: >> Hello, >> >> Does anyone knows a way to configure vim so it automatically >> select to correct expandtab value depending on the current >> buffer 'way of doing' ? I need to edit different files, some >> are us

Re: Python + vim + spaces vs tab

2010-06-09 Thread Jean-Michel Pichavant
Robin Becker wrote: On 07/06/2010 22:18, Hans Mulder wrote: Jean-Michel Pichavant wrote: Hello, Does anyone knows a way to configure vim so it automatically select to correct expandtab value depending on the current buffer 'way of doing' ? I need to edit different files, some are using space

Re: Python + vim + spaces vs tab

2010-06-08 Thread Robin Becker
On 07/06/2010 22:18, Hans Mulder wrote: Jean-Michel Pichavant wrote: Hello, Does anyone knows a way to configure vim so it automatically select to correct expandtab value depending on the current buffer 'way of doing' ? I need to edit different files, some are using spaces, others tabs. Those b

Re: Python + vim + spaces vs tab

2010-06-07 Thread Hans Mulder
Jean-Michel Pichavant wrote: Hello, Does anyone knows a way to configure vim so it automatically select to correct expandtab value depending on the current buffer 'way of doing' ? I need to edit different files, some are using spaces, others tabs. Those belong to different projects, and changi

Re: Python + vim + spaces vs tab

2010-06-07 Thread Neil Cerutti
On 2010-06-07, Jean-Michel Pichavant wrote: > Hello, > > Does anyone knows a way to configure vim so it automatically > select to correct expandtab value depending on the current > buffer 'way of doing' ? I need to edit different files, some > are using spaces, others tabs. Those belong to differe

Python + vim + spaces vs tab

2010-06-07 Thread Jean-Michel Pichavant
Hello, Does anyone knows a way to configure vim so it automatically select to correct expandtab value depending on the current buffer 'way of doing' ? I need to edit different files, some are using spaces, others tabs. Those belong to different projects, and changing all spaces to tabs is not