-
Notifications
You must be signed in to change notification settings - Fork 297
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Polyglot is wrongly setting tabstop to 2 on several file types #648
Comments
the default tabstop was set to 2 with commit 29ec69ffa095a16fe15e4c63c1a6ba90974efd74 |
I've managed to circumvent the issue by setting |
Shiftwidth should now also be automatically set to 2 (or whatever tabstop is) which should fix this issue. If you really like 8 spaces tabstop, you can use |
use 4 instead sheerun#648 already setting tabstop to 4 but it still resets ps1 file type to 2 at random time so decided to create a fork and stop the behavior
The problem is still present. I found it as it messed up the indentation of files when seen on different systems. I don't think unconditionally changing such a default without a very specific configuration option to not do it is a good idea : |
The problem is still present. Disabling "autoindent" or "sensible" creates other problems, like syntax not fully loaded for .blade.php, i.e. % key doesn't jump as it should on @if. Or Visual line not changing background if you have :set bg=dark ~/.vimrc
|
Does this bug happen when you install plugin without vim-polyglot?
Don't know, because this happens on several file types, so I cannot pinpoint a single plugin. It also happens on files without a file type.
Describe the bug:
When Polyglot is enabled,
tabstop
is set to 2 on at least these files:On C/C++ is specially troublesome because shiftwidth is still 8, thus vim is adding 4 tab characters on every indentation level.
To Reproduce:
Enable Polyglot master (73c5187) and open vim. Now inspect the value of
tabstop
withset ts?
.The text was updated successfully, but these errors were encountered: