{"id":21319798,"url":"https://github.com/blurfx/auto-indent.vim","last_synced_at":"2025-07-14T10:07:28.398Z","repository":{"id":148093310,"uuid":"427654029","full_name":"blurfx/auto-indent.vim","owner":"blurfx","description":"Vim plugin that automatically detect and config indentation rule","archived":false,"fork":false,"pushed_at":"2021-12-04T13:35:22.000Z","size":12,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T22:29:22.863Z","etag":null,"topics":["vim","vim-plugin"],"latest_commit_sha":null,"homepage":"","language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/blurfx.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-13T12:05:39.000Z","updated_at":"2024-07-17T05:50:53.000Z","dependencies_parsed_at":"2023-05-19T03:30:17.965Z","dependency_job_id":null,"html_url":"https://github.com/blurfx/auto-indent.vim","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/blurfx/auto-indent.vim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blurfx%2Fauto-indent.vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blurfx%2Fauto-indent.vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blurfx%2Fauto-indent.vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blurfx%2Fauto-indent.vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blurfx","download_url":"https://codeload.github.com/blurfx/auto-indent.vim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blurfx%2Fauto-indent.vim/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265277482,"owners_count":23739396,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["vim","vim-plugin"],"created_at":"2024-11-21T19:44:15.946Z","updated_at":"2025-07-14T10:07:28.371Z","avatar_url":"https://github.com/blurfx.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# auto-indent.vim\nVim plug-in that automatically detects and sets indentation level\n\n## Installtion\n\n### Using [vim-plug](https://github.com/junegunn/vim-plug)\n\n```vim\n\" .vimrc\n\nPlug 'blurfx/auto-indent.vim'\n```\n\n## Customization\n\n### Options\n\n```vim\n\" The plugin follows the detected indentation.\n\" but if it's not detected, it follows fallback configuration.\n\n\" Fallback indentation type. (0: space, 1: tab)\n\" If you are using a tab indent, set it to 1.\n\" (default value: 0)\nlet g:autoindent_expandtab = 0\n\n\" Indent space size / tab width\n\" (default value: 2 for spaces, 4 for tab width)\nlet g:autoindent_indent_space_size = 2\nlet g:autoindent_indent_tab_size = 4\n```\n\n### Callback\n\nIf you want to do additional work with the detected indentation, define the callback function `AutoIndentCallback`.\n\n```vim\nfunction! AutoIndentCallback(indent)\n  \" {'type': 'tab': 'size': 1}\n  echom a:indent\nendfunction\n```\n\n#### Arguments\n\n| Arugment | Type    | Description |\n|----------|---------|-------------|\n| indent   | `{'type': 'space' \\| 'tab', 'size': number}`| - |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblurfx%2Fauto-indent.vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblurfx%2Fauto-indent.vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblurfx%2Fauto-indent.vim/lists"}