Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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).