tabs and spaces in source
Oleg G. Sharov
o.sharov at gmail.com
Tue Dec 12 10:34:14 PST 2006
Hi!
> Hi there!
> I've found that a lot of code use the both methods for indentation:
> tabs and spaces. Take a look at DITrack/DB.py for example.
> I use vim and "set tabstop=4", so all code become incorrect.
> Vlad, Oleg, your comments?
> What style do you prefer?
> My opinion: 4 spaces for one level of indentation, no tabs.
> Every file should be "retabed".
We use 4 spaces instead of tabs. You can add to your .vimrc string
"autocmd FileType python setlocal sw=4 sts=4" into block
if has("autocmd")
...
endif " has("autocmd")
then your code will corresponded with our code.
> Ivan.
--
Oleg G. Sharov, o.sharov at gmail.com, http://gg.ulstu.ru
More information about the Dev
mailing list