vim-xo
Install
Pathogen
Using$ git clone --depth=1 https://github.com/xojs/vim-xo ~/.vim/bundle/vim-xo
Vundle
Using- Add
Plugin 'xojs/vim-xo'
to~/.vimrc
:PluginInstall
or$ vim +PluginInstall +qall
NeoBundle
Using- Add
NeoBundle 'xojs/vim-xo'
to~/.vimrc
- Re-open vim or execute
:source ~/.vimrc
vim-plug
Using- Add
Plug 'xojs/vim-xo'
to~/.vimrc
:PlugInstall
or$ vim +PlugInstall +qall
Features
Syntastic
Linting withThis 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.
vim-autoformat
Formatting withFormatting with vim-autoformat
will just work when XO is installed globally (npm i -g xo
).
License
MIT © Sindre Sorhus