Spaces and tabs messing up code

2008-01-08 Thread mobiledreamers
my friend uses vim and i use xemacs so our shared python code is a mix of tabs and spaces and it is hard for him to edit it in vim any idea on how to make it clean convert it all to 4 spaces? Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: [Tutor] Spaces and tabs messing up code

2008-01-08 Thread Bill Campbell
On Tue, Jan 08, 2008, [EMAIL PROTECTED] wrote: my friend uses vim and i use xemacs so our shared python code is a mix of tabs and spaces and it is hard for him to edit it in vim any idea on how to make it clean convert it all to 4 spaces? Do that, and in his ~/.vimrc file,

Re: [Tutor] Spaces and tabs messing up code

2008-01-08 Thread Bill Burns
[EMAIL PROTECTED] wrote: my friend uses vim and i use xemacs so our shared python code is a mix of tabs and spaces and it is hard for him to edit it in vim any idea on how to make it clean convert it all to 4 spaces? Thanks Take a look at reindent.py. This script lives in your

Re: [Tutor] Spaces and tabs messing up code

2008-01-08 Thread Reed O'Brien
On Jan 8, 2008, at 7:49 PM, Bill Campbell wrote: On Tue, Jan 08, 2008, [EMAIL PROTECTED] wrote: my friend uses vim Small editors for small minds;) and i use xemacs so our shared python code is a mix of tabs and spaces and it is hard for him to edit it in vim any idea on

Re: Spaces and tabs messing up code

2008-01-08 Thread Robert Hicks
[EMAIL PROTECTED] wrote: my friend uses vim and i use xemacs so our shared python code is a mix of tabs and spaces and it is hard for him to edit it in vim any idea on how to make it clean convert it all to 4 spaces? Thanks :set ts=4 :retab! :h retab --

Re: Spaces and tabs messing up code

2008-01-08 Thread Ben Finney
Robert Hicks [EMAIL PROTECTED] writes: [EMAIL PROTECTED] wrote: my friend uses vim and i use xemacs so our shared python code is a mix of tabs and spaces and it is hard for him to edit it in vim any idea on how to make it clean convert it all to 4 spaces? Thanks :set ts=4