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)

> Also, for SASS they're overwriten in the indent file, which gets 
> loaded  regardless of filetype plugins (AFAIK ?)

I agree, indent files should not set options that have nothing to do 
with indenting. For 'shiftwidth' and 'expandtab' it is arguable. You 
might want to discuss this with the indent script maintainer. If he 
agrees, he will send updated files to Bram for inclusion with Vim.

If you do not want indent scripts to be loaded, do NOT use the indent 
part of the :ftplugin command. You can always check by issugin :filetype

Best,
Christian
-- 
Die Liebe stirbt meist an den kleinen Fehlern, die man am Anfang so
entzückend findet.
                -- Albert Schweitzer

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui