https://github.com/xi/vim-indent-detect
A Vim plugin for handeling indentation.
https://github.com/xi/vim-indent-detect
Last synced: 3 months ago
JSON representation
A Vim plugin for handeling indentation.
- Host: GitHub
- URL: https://github.com/xi/vim-indent-detect
- Owner: xi
- License: gpl-2.0
- Created: 2016-09-11T23:18:12.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2024-04-20T09:43:21.000Z (about 1 year ago)
- Last Synced: 2025-01-30T19:23:50.894Z (5 months ago)
- Language: Vim Script
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A Vim plugin for handeling indentation.
- Whenever a file is loaded, this plugin detects the indentation automatically.
The detection is quite simplistic:- it does not support mixed tabs and spaces
- it only consider the first indented line
- it does not consider anything after line 50- The settings can be overwritten manually by using the `Spaces [width]` and
`Tabs [width]` commands.- You can change the default tab width by setting
`g:detectindent_preferred_indent`.Inspired by [detectindent](https://github.com/ciaranm/detectindent) and
[vim-sleuth](https://github.com/tpope/vim-sleuth).