The Wayback Machine - https://web.archive.org/web/20201022105715/https://github.com/xojs/vim-xo
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 

readme.md

vim-xo

Vim plugin for XO that provides Syntastic integration

Install

Using Pathogen

$ git clone --depth=1 https://github.com/xojs/vim-xo ~/.vim/bundle/vim-xo

Using Vundle

  1. Add Plugin 'xojs/vim-xo' to ~/.vimrc
  2. :PluginInstall or $ vim +PluginInstall +qall

Using NeoBundle

  1. Add NeoBundle 'xojs/vim-xo' to ~/.vimrc
  2. Re-open vim or execute :source ~/.vimrc

Using vim-plug

  1. Add Plug 'xojs/vim-xo' to ~/.vimrc
  2. :PlugInstall or $ vim +PlugInstall +qall

Features

Linting with Syntastic

This plugin automatically registers XO as a syntax checker with Syntastic.

To activate XO, put the following in your .vimrc file:

let g:syntastic_javascript_checkers = ['xo']

See the Syntastic docs for more.

Formatting with vim-autoformat

Formatting with vim-autoformat will just work when XO is installed globally (npm i -g xo).

License

MIT © Sindre Sorhus

You can’t perform that action at this time.