Vim script for automatically detecting indent settings
Switch branches/tags
Nothing to show
Clone or download
ciaranm Merge pull request #21 from idbrii/buffer-local
Allow settings to be buffer-local
Latest commit c09ab6e Mar 9, 2015
Type Name Latest commit message Commit time
Failed to load latest commit information.
plugin Allow settings to be buffer-local Feb 25, 2015 Add a README Nov 20, 2014

A Vim plugin, for automatically detecting indent settings. This plugin adds a :DetectIndent command, which tries to intelligently set the 'shiftwidth', 'expandtab' and 'tabstop' options based upon the existing settings in use in the active file.

You may wish to consider one of the many forks of this project. Be aware that some of these forks have merged patches that I have been ignoring for good reasons, and that long lists of special cases are not necessarily a good idea...