On Tue, Oct 07, 2014 at 04:30:03PM +0200, Christian Brabandt wrote:
> On Di, 07 Okt 2014, Martin Tournoij wrote:
> 
> > I think there is a difference; ftplugin files almost always sets useful,
> > filetype-specific stuff.
> > 
> > A quick grep on setlocal shows that it usually just sets comments, foldexpr,
> > formatoptions, etc. These things are what almost everyone wants, regardless 
> > of
> > personal preferences (I *want* those settings).
> > This is not the case for expandtab & tabstop.  These are "personal"
> > settings, and, IMHO, different from almost all other stuff set in ftplugin
> > files.
> 
> At least for python, it provides defaults for being PEP8 compliant. (see 
> issue https://code.google.com/p/vim/issues/detail?id=98)

It's more serious than that: indentation is significant in Python, and
Python always treats a tab character as 8 spaces.

If you mix tabs and spaces, and your editor shows the tabs differently
from 8 spaces, you'll end up seeing the wrong block structure.  Have fun
debugging!

Marius Gedminas
-- 
The world is going metric - inch by inch.
        -- Michael Meeks

Attachment: signature.asc
Description: Digital signature

Raspunde prin e-mail lui