Autotab determines the indentation size used by a source file, as well as the hard tab size at which the file is intended to be viewed/edited (if it used hard tabs).
It is written in C. Compile with "cc -O autotab.c -o autotab".
Autotab is designed to be called out the .vimrc file, whenever a file into a buffer. After scanning an initial portion of the file consisting of several thousand lines, it outputs the Vi parametrs tabstop, shiftwidth and expandtab.
526 Mar 2016 04:13
Fixed misuse of functions.