Skip to content

Commit

Permalink
Link to the Vim plugin
Browse files Browse the repository at this point in the history
Fixes #160
  • Loading branch information
sindresorhus committed Jan 12, 2017
1 parent 61c046c commit a469eb6
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -308,28 +308,11 @@ XO is based on ESLint. This project started out as just a shareable ESLint confi

- [Sublime Text](https://github.com/sindresorhus/SublimeLinter-contrib-xo)
- [Atom](https://github.com/sindresorhus/atom-linter-xo)
- [Vim](https://github.com/sindresorhus/vim-xo)
- [TextMate 2](https://github.com/claylo/XO.tmbundle)
- [VSCode](https://github.com/SamVerschueren/vscode-linter-xo)
- [Emacs](https://github.com/j-em/xo-emacs)

#### Vim

You can use [Syntastic](https://github.com/scrooloose/syntastic)'s ESLint checker with the following settings in your `.vimrc` file:

```vim
let g:syntastic_javascript_eslint_generic = 1
let g:syntastic_javascript_eslint_exec = 'xo'
let g:syntastic_javascript_eslint_args = '--reporter=compact'
let g:syntastic_javascript_checkers = ['eslint']
```

You can also use [vim-autoformat](https://github.com/Chiel92/vim-autoformat) to format your code with XO, using the following settings in your `.vimrc` file:

```vim
let g:formatdef_xo = '"xo --fix --stdin"'
let g:formatters_javascript = ['xo']
```


## Build-system plugins

Expand Down

0 comments on commit a469eb6

Please sign in to comment.