Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/conormcd/matchindent.vim
Try and set the indent style to whatever is in the file being edited.
https://github.com/conormcd/matchindent.vim
Last synced: 2 days ago
JSON representation
Try and set the indent style to whatever is in the file being edited.
- Host: GitHub
- URL: https://github.com/conormcd/matchindent.vim
- Owner: conormcd
- Created: 2012-04-27T22:51:59.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2022-10-27T13:02:22.000Z (about 2 years ago)
- Last Synced: 2024-11-09T07:48:17.111Z (about 2 months ago)
- Language: Vim script
- Size: 7.81 KB
- Stars: 9
- Watchers: 3
- Forks: 8
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Match Indentation Style
Some people like tabs, some like spaces. Very few people like it when you edit
their stuff and use a different method of indentation.This plugin scans through a file when it's opened and attempts to guess which
style of indentation is being used. It then overrides your preferences so that
you match the style of the file.Currently it only detects the three most common styles of indentation, tabs, 2
spaces and 4 spaces. Patches to make this plugin more general are welcomed.## Installation
### Using Pathogen
cd ~/.vim
git clone git://github.com/conormcd/matchindent.vim bundle/matchindent.vim### Manual Install
git clone git://github.com/conormcd/matchindent.vim
cp -R matchindent.vim/plugin/* ~/.vim/plugin/