Skip to content

Polyglot is wrongly setting tabstop to 2 on several file types #648

Closed
@ianliu

Description

@ianliu

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:

  • Makefiles
  • Text files
  • C/C++
  • Files without a type

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 with set ts?.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions