ciaranm / detectindent

Vim script for automatically detecting indent settings
173 stars 48 forks source link

Add option for preferred values with tabs + spaces #20

Closed idbrii closed 9 years ago

idbrii commented 9 years ago

Add detectindent_preferred_when_mixed so we use detectindent_preferred_indent and detectindent_preferred_expandtab when both tabs and spaces are found. This makes it easier for users to enforce a "correct" setting when working in messy code.

I work in code where some of it is autogenerated with the wrong settings or people aren't careful with indentation, so this lets me force the preferred values (or leave the defaults if I don't set preferred values).