Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Personal shiftwidth/expandtab/... picker
C VimL
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
autoload
indent_test
plugin
README.rst

README.rst

Vim-indent

Sick and tired of managing freaking whitespace? This plugin picks the correct shiftwidth, tabstop, expandtab and softtabstop values for you! These settings make sure that your source code is indented correctly.

It is partly based on tpope's vim-sleuth and detectindent but works differently:

  • The following settings are preferred in an ambigious situation: shiftwidth=4 & tabstop=4 (1 tab = 4 spaces), expandtab (use spaces over real tabs).
  • Like vim-sleuth neighboring files of the same type are searched if the current file is new.
  • It allows you to define a custom command to be executed when detection completely fails (f.e. let g:default_indent_php="setl sw=2")

Apart from using an indentation guesser like this, another option to consider is to use project-specific-settings.

Something went wrong with that request. Please try again.