Setting shiftwidth/expandtab in ftplugin
- Hi there,
I have a question regarding the implementation of filetype plugins.
The README.txt for the ftplugin directory states the following:
> The default filetype plugin files contain settings that 95% of theIn the Ruby community, it is a generally agreed convention to always
> users will want to use. They do not contain personal preferences,
> like the value of 'shiftwidth'.
indent with two spaces (no tabs). You have to try hard to find real code
that isn't indented that way.
So, if 95% or more of the users will have to set shiftwidth=2 and
expandtab in their personal configuration to use Vim for programming
Ruby, is that something that belongs in the official ftplugin?
Is there some kind of guideline for this? I see 5 occurrences of setting
shiftwidth in my /usr/share/vim/vim73/ftplugin.
Here's the discussion for the Ruby ftplugin that prompted this question:
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