我尝试配置我VIM
的基础以IDE
用于我的js
项目。
我是Plugin 'vim-syntastic/syntastic
使用vundle
.
我的部分.vimrc
:
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_javascript_eslint_exe = 'yarn run eslint --'
yarn eslint
效果很好
综合信息:
Syntastic version: 3.9.0-33 (Vim 800, Darwin)
Info for filetype: javascript
Global mode: active
Filetype javascript is active
The current file will be checked automatically
Available checkers: -
Currently enabled checkers: -
后npm install -g jslint
Available checkers: -
->Available checkers: jslint