[Tutor] Spaces and tabs messing up code

Bill Campbell bill at celestial.net
Tue Jan 8 19:49:41 EST 2008


On Tue, Jan 08, 2008, mobiledreamers at gmail.com 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, add a line ``set expandtab''

(Friends don't let friends use emacs :-).

Bill
--
INTERNET:   bill at celestial.com  Bill Campbell; Celestial Software LLC
URL: http://www.celestial.com/  PO Box 820; 6641 E. Mercer Way
FAX:            (206) 232-9186  Mercer Island, WA 98040-0820; (206) 236-1676

Giving money and power to government is like giving whiskey and car keys to
teenage boys -- P.J. O'Rourke



More information about the Python-list mailing list