Autotab 5

Autotab works with Vim, allowing you to edit any file using the correct indentation conventions. 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. Autotab not only determines the indentation size used by a source file, but if the file uses hard tabs, it determines the tab size at which the file should be viewed/edited, by an algorithm which expands the text sample using various tab sizes, and looks for multiple alignment clues across lines. It is written in C. Compile with "cc -O autotab.c -o autotab".

Tags text-editor utilities vim
License BSDL
State stable

Recent Releases

526 Mar 2016 04:13 minor feature: Fixed misuse of functions.