Switch branches/tags
Nothing to show
Commits on Oct 4, 2012
  1. Use the documented global setting when the file is ambiguous

    ogier committed Oct 4, 2012
    The documented setting, 'g:guessindent_prefer_tabs' was
    non-functional in favor of a differently named setting. Now the
    code agrees with the documentation.
  2. Set softtabstop=0 when noexpandtab is set

    ogier committed Oct 4, 2012
    softtabstop is useful when expandtab is set because it makes the
    tab key a useful tool for indenting. When noexpandtab is set,
    it causes the tab, >, and < keys to insert mixed spaces for
    indentation which isn't a useful behavior. Setting to 0 disables
    this and allows true tab characters to be used.
    Fixes #1
Commits on Oct 1, 2012
  1. Add a README

    ogier committed Oct 1, 2012
  2. Move to new filename

    ogier committed Oct 1, 2012
  3. Make the indentation guessing much less invasive.

    ogier committed Oct 1, 2012
    1.  Never set tabstop: just let the default from vimrc take priority.
        The only interesting case is when leading tabs and spaces are
        mixed, and in my experience the only sane guess in that situation
        is "4". This change removes the need for
    2.  Count how many times we see leading tabs vs. leading spaces, so
        that we can make a better guess about what the file is using.
        This change makes g:detectindent_preferred_expandtab just a
        hint as to which setting to lean towards when guessing.
    3.  If we don't see any leading tabs or spaces, don't do anything.
        Users can set filetype defaults easily for this kind of
        situation anyways.
Commits on Jun 26, 2011
  1. Merge pull request #9 from jonasb/master

    ciaranm committed Jun 26, 2011
    Made some minor improvements
Commits on Jun 23, 2011
  1. Add the line number of the shortest leading spaces to the verbose out…

    jonasb committed Jun 23, 2011
    …put for debugging purposes
  2. Add support for Java

    jonasb committed Jun 23, 2011
Commits on May 23, 2011
  1. Merge pull request #8 from blueyed/patch-1

    ciaranm committed May 23, 2011
    Fix verbose_msg for no spaces/tabs.
  2. Fix verbose_msg for no spaces/tabs.

    blueyed committed May 23, 2011
    Also, use "and" in general for these messages.
Commits on May 19, 2011
  1. Merge pull request #7 from blueyed/command-with-bar

    ciaranm committed May 19, 2011
    Add `-bar` to definition of `:DetectIndent`.
  2. Add `-bar` to definition of `:DetectIndent`.

    blueyed committed May 19, 2011
    This will allow to use the bar (`|`) after the command, which comes in
    handy in a custom mapping.
Commits on Mar 28, 2011
  1. Improve verbosity.

    blueyed committed Mar 28, 2011
      - Output internal states (`has_leading_tabs`, `has_leading_spaces`,
        `shortest_leading_spaces_run`, `longest_leading_spaces_run`).
      - Show differences from internal buffer values for &et, &sw, &ts and
Commits on Mar 23, 2011
Commits on Mar 20, 2011
  1. Be more verbose.

    blueyed committed Mar 20, 2011
    This adds a new setting g:detectindent_verbosity (default: 1) and lets
    the plugin be more chatty if &verbose is >= this setting.
Commits on Oct 12, 2010
Commits on Aug 10, 2009
  1. Limit number of lines that are analysed to improve oepning speed if f…

    suokko authored and ciaranm committed Aug 10, 2009
    …ile is very large.
    Default number of lines to analyse is 1024. Default can be changed with g:detectindent_max_lines_to_analyse variable.
    Signed-off-by: Pauli Nieminen <>
Commits on Jul 14, 2009
  1. Ignore whitespace only lines.

    jamessan committed Jul 14, 2009
    Paying attention solely to lines with actual content should improve the
    heuristics as those lines are more likely to be paid due attention.  Lines of
    pure whitespace probably go unnoticed by most people and are therefore less
    likely to follow the proper indent style.
  2. Correct line index bug in “skip comments” loop.

    jamessan committed Jul 14, 2009
    Since the loop was retrieving the next line to examine before advancing the
    line index, the index ended up being two lines past the end of the comment
    instead of the expected one line.
Commits on Jul 9, 2009
  1. Import

    ciaranm committed Jul 9, 2009