{"id":21013420,"url":"https://github.com/heavenshell/vim-textlint","last_synced_at":"2025-05-15T04:34:20.679Z","repository":{"id":51326772,"uuid":"62997558","full_name":"heavenshell/vim-textlint","owner":"heavenshell","description":"Wrapper for textlint","archived":false,"fork":false,"pushed_at":"2021-05-15T02:59:20.000Z","size":2363,"stargazers_count":26,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-03-10T20:08:08.168Z","etag":null,"topics":["textlint","vim"],"latest_commit_sha":null,"homepage":null,"language":"Vim script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heavenshell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-07-10T12:27:28.000Z","updated_at":"2022-08-23T06:18:47.000Z","dependencies_parsed_at":"2022-09-10T12:20:42.710Z","dependency_job_id":null,"html_url":"https://github.com/heavenshell/vim-textlint","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fvim-textlint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fvim-textlint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fvim-textlint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heavenshell%2Fvim-textlint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heavenshell","download_url":"https://codeload.github.com/heavenshell/vim-textlint/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225328916,"owners_count":17457328,"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":["textlint","vim"],"created_at":"2024-11-19T09:42:24.349Z","updated_at":"2024-11-19T09:42:25.074Z","avatar_url":"https://github.com/heavenshell.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-textlint\n\n[![Build Status](https://travis-ci.org/heavenshell/vim-textlint.svg?branch=master)](https://travis-ci.org/heavenshell/vim-textlint)\n\nWrapper for [textlint](https://textlint.github.io/).\n\n![Asynchronous textlint](./assets/vim-textlint.gif)\n\n## Motivations\n\nI want to load `textlint` config file dynamically.\n\n[Syntastic](https://github.com/scrooloose/syntastic) can use `textlint` but not support config file.\n\n[watchdocs.vim](https://github.com/osyo-manga/vim-watchdogs) also has `textlint` settings but not supporting config file.\n\n\n## Configure\n\nAdd `textlint` config file name to your `.vimrc`.\n```viml\n\" textlint.vim {{{\nlet g:textlint_configs = [\n  \\ '@azu/textlint-config-readme',\n  \\ '@example/textlint-config-example',\n  \\ ]\n\" }}}\n```\n\n## Usage\n\n```viml\n:Textlint\n:cwindow\n```\nIf you did not set any args, `vim-textlint` would use `g:textlint_configs`'s first value or `textlintrc`.\n\n```viml\n:Textlint -c @example/textlint-config-example\n:cwindow\n```\nYou can select `textlint` config file via command line.\n\n## Autofix\n\nIf rules are fixable, you can autofix with `TextlintFix`.\n\n## Helpful plugins\n\n[QuickFixstatus](https://github.com/dannyob/quickfixstatus) shows error message at the bottom of the screen.\n\n[Hier](https://github.com/cohama/vim-hier) will highlight `quickfix` errors and location list entries in buffer.\n\n## Sample settings\n\nAfter run `:Textlint` textlint.vim would show errors if error exists.\n\n- Show QuickFix error in statusline, and highlight QuickFix errors run\n  quickfixstatus.vim and vim-hier.\n\n```viml\n  function! s:textlint_after(...)\n    execute ':QuickfixStatusEnable'\n    execute ':HierUpdate'\n  endfunction\n\n  let g:textlint_callbacks = {\n    \\ 'after_run': function('s:textlint_after')\n    \\ }\n  autocmd BufWritePost *.md call textlint#run()\n  autocmd InsertLeave *.md call textlint#run()\n  \" TextChanged triggered very often, turn off if Vim is slow.\n  autocmd TextChanged,TextChangedI *.md call textlint#run()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheavenshell%2Fvim-textlint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheavenshell%2Fvim-textlint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheavenshell%2Fvim-textlint/lists"}