On Tuesday, October 7, 2014 3:47:04 PM UTC+2, Martin Tournoij wrote: > > If you want your own settings and never want to have filetype plugins > > enabled, do NOT set the :filetype plugin command in your .vimrc (so > > ftplugins are effectively disabled). Alternatively you can override > > those settings for specific filetypes by creating your own > > after/ftplugin.vim files. > > Thanks, > > 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.
Your argument is spot on for the general case but I think Python is a special case. I'm sure you're aware of the fact that for some languages there is a mandated standard style that the majority of users want. In Go, indentation with tabs is enforced by the language tooling so everybody will want tabs. In Python there's PEP 8, so most users will want four spaces. I think in these cases it makes sense to set these settings in the ftplugin. Best, -- David -- -- 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.
