Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xi/vim-indent-detect
A Vim plugin for handeling indentation.
https://github.com/xi/vim-indent-detect
Last synced: about 1 month 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 (over 8 years ago)
- Default Branch: main
- Last Pushed: 2024-04-20T09:43:21.000Z (9 months ago)
- Last Synced: 2024-04-20T10:42:24.320Z (9 months ago)
- Language: Vim Script
- Homepage:
- Size: 13.7 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).