{"id":18399200,"url":"https://github.com/xojs/vim-xo","last_synced_at":"2025-04-07T05:34:08.001Z","repository":{"id":15766395,"uuid":"78731275","full_name":"xojs/vim-xo","owner":"xojs","description":"Vim plugin for XO","archived":false,"fork":false,"pushed_at":"2024-01-29T19:40:27.000Z","size":6,"stargazers_count":51,"open_issues_count":1,"forks_count":2,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-19T21:45:46.505Z","etag":null,"topics":["editor-plugin","formatting","linting","syntastic","vim","vim-autoformat","vim-plugin","xo"],"latest_commit_sha":null,"homepage":"https://github.com/xojs/xo","language":"Vim Script","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xojs.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":"2017-01-12T09:56:13.000Z","updated_at":"2025-01-02T10:34:45.000Z","dependencies_parsed_at":"2022-07-21T21:32:27.987Z","dependency_job_id":null,"html_url":"https://github.com/xojs/vim-xo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xojs%2Fvim-xo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xojs%2Fvim-xo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xojs%2Fvim-xo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xojs%2Fvim-xo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xojs","download_url":"https://codeload.github.com/xojs/vim-xo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601378,"owners_count":20964861,"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":["editor-plugin","formatting","linting","syntastic","vim","vim-autoformat","vim-plugin","xo"],"created_at":"2024-11-06T02:26:05.721Z","updated_at":"2025-04-07T05:34:02.979Z","avatar_url":"https://github.com/xojs.png","language":"Vim Script","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vim-xo\n\n\u003e Vim plugin for [XO](https://github.com/xojs/xo) that provides [Syntastic](https://github.com/vim-syntastic/syntastic) integration\n\n\n## Install\n\n### Using [Pathogen](https://github.com/tpope/vim-pathogen)\n\n```\n$ git clone --depth=1 https://github.com/xojs/vim-xo ~/.vim/bundle/vim-xo\n```\n\n### Using [Vundle](https://github.com/VundleVim/Vundle.vim)\n\n1. Add `Plugin 'xojs/vim-xo'` to `~/.vimrc`\n2. `:PluginInstall` or `$ vim +PluginInstall +qall`\n\n### Using [NeoBundle](https://github.com/Shougo/neobundle.vim)\n\n1. Add `NeoBundle 'xojs/vim-xo'` to `~/.vimrc`\n2. Re-open vim or execute `:source ~/.vimrc`\n\n### Using [vim-plug](https://github.com/junegunn/vim-plug)\n\n1. Add `Plug 'xojs/vim-xo'` to `~/.vimrc`\n2. `:PlugInstall` or `$ vim +PlugInstall +qall`\n\n\n## Features\n\n### Linting with [Syntastic](https://github.com/vim-syntastic/syntastic)\n\nThis plugin automatically registers XO as a syntax checker with Syntastic.\n\nTo activate XO, put the following in your `.vimrc` file:\n\n```vim\nlet g:syntastic_javascript_checkers = ['xo']\nlet g:syntastic_typescript_checkers = ['xo']\n```\n\nSee the Syntastic [docs](https://github.com/vim-syntastic/syntastic/blob/master/doc/syntastic.txt) for more.\n\n### Formatting with [vim-autoformat](https://github.com/Chiel92/vim-autoformat)\n\nFormatting with `vim-autoformat` will *just work* (since this plugin uses `npx xo`).\n\nYou do not need to install `xo` globally (and if it is installed globally, then please remove it as [global installation is deprecated](https://github.com/xojs/xo/releases/tag/v0.41.0)).\n\nOnce you install `vim-autoformat`, you will need to add the following to your `~/.vimrc`:\n\n```diff\n+\" vim-autoformatter\n+\" https://github.com/vim-autoformat/vim-autoformat\n+let g:autoformat_autoindent = 0\n+let g:autoformat_retab = 0\n+let g:autoformat_remove_trailing_spaces = 0\n+let g:formatters_javascript = [ 'xo_javascript' ]\n+let g:formatters_typescript = [ 'xo_typescript' ]\n```\n\nIf you'd like your code to be formatted on save (instead of typing `:Autoformat` in vim buffer), then also add this line to your `~/.vimrc`:\n\n```diff\n+au BufWrite * :Autoformat\n```\n\nSee [vim-autoformat](https://github.com/vim-autoformat/vim-autoformat#how-to-use)'s \"How to use\" section for more information.\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxojs%2Fvim-xo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxojs%2Fvim-xo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxojs%2Fvim-xo/lists"}