tpope/vim-sleuth
sleuth.vim: Heuristically set buffer options observed · 2026-08-28
Health v2 · maintenance only
32/100
- Activity 0
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 4994
- days_rel: n/a
- days_push: 713
- n_releases_24m: 0
Adoption not part of the score
2145 stars · 94 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
sleuth.vim is a Vim plugin that heuristically detects indentation settings from the current file and neighboring files, automatically setting 'shiftwidth' and 'expandtab'. It also consults modelines and EditorConfig files to set additional buffer options like 'tabstop' and 'textwidth'.
Use cases
- automatically detect indentation style in vim
- stop manually setting shiftwidth and expandtab per project
- respect editorconfig indentation settings in vim
- detect tabs vs spaces when opening a file
- remove indent-related configuration from my vimrc
- set buffer options from modelines automatically
When to choose
- you use Vim or Neovim and want fully automatic indentation detection
- you work across projects with inconsistent indentation conventions
- you want EditorConfig support without a separate plugin
When to avoid
- you prefer explicit, fixed indentation settings in your vimrc
- you use an editor other than Vim/Neovim
- you need indentation detection for non-editor tooling
Facets
plugin · maturity stable
editor developer-tools text-editors developer-tools editor-plugin cross-platform vim editorconfig indentation shiftwidth expandtab heuristics
5 sources
- readme: https://github.com/tpope/vim-sleuth · fetched 2026-08-28 · c54f87563484
- homepage: https://www.vim.org/scripts/script.php?script_id=4375 · fetched 2026-08-29 · 628e7be01ead
- site_page: https://www.vim.org/about.php · fetched 2026-08-29 · 1bd2c1907ce5
- site_page: https://www.vim.org/docs.php · fetched 2026-08-29 · 438015e9e2e2
- site_page: http://www.vim.org/about.php · fetched 2026-08-29 · fbe78bde9535
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| tpope/vim-sleuth | main | 32 |
For agents
markdown · JSON · MCP: product_card(name="tpope/vim-sleuth")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem