https://github.com/luochen1990/indent-detector.vim
Keep indent consistent without any effort
https://github.com/luochen1990/indent-detector.vim
Last synced: 8 months ago
JSON representation
Keep indent consistent without any effort
- Host: GitHub
- URL: https://github.com/luochen1990/indent-detector.vim
- Owner: luochen1990
- License: mit
- Created: 2015-06-05T04:15:02.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2019-11-01T14:52:55.000Z (over 6 years ago)
- Last Synced: 2025-03-14T01:24:54.642Z (over 1 year ago)
- Language: VimL
- Homepage:
- Size: 107 KB
- Stars: 40
- Watchers: 3
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Indent Detector
===============
[这里有中文说明](https://github.com/luochen1990/indent-detector.vim/blob/master/README_cn.md)
features
--------
- detect mixed indent(indent with both spaces and tabs) and echo warnning on `bufEnter` and `bufWrite` automatically.
- switch setting about indenting to fit the current indenting style automatically.
- detecting time is limited, so you don't need to worry about opening huge files.
note
----
- the options decided by this plugin are `expandtab` `smarttab` `tabstop` `shiftwidth` `softtabstop`, and is setted via `setlocal`.
- your own setting about indenting is also used as default when the indenting style is not decided. (when you create an empty file or enter a file which occurs no leading spaces or tabs)
- this plugin will do nothing when you open an readonly file (`:echo &readonly` to check that), so that you can open help files without warnning.
install
-------
### via Vundle:
```vim
Bundle 'luochen1990/indent-detector.vim'
```
### manually
put `indentdetector.vim` to directory `~/.vim/plugin` or `vimfiles/plugin`
> remenber to restart your vim after installation