Hello, I am working on a C project where the coding style enforces using tab indentation only. Thus, I would like to enforce that policy via modeline without affecting user preferred tabstop.
In order to do that, right now I use: // vim:noet:sts=0 Sadly, I don't think it is currently possible to reset shiftwidth to the value of tabstop. Thus, a user having 'ts=8:sw=4' in his preferences will still be inserting spaces. Thus, I'd like to request the following feature: option to reset the shiftwidth to the value of tabstop. Practically, it could be implemented by allowing 'sw=0' (much like 'sts=0'), and using the value of 'ts' in that case. Right now, setting 'sw=0' is prohibited so I don't think this would introduce any compatibility problems. Of course, the 'sw=0' will be useful only in modelines for newer vim versions. -- Best regards, Michał Górny
signature.asc
Description: PGP signature
