我尝试将基于VIM
的{{1}}配置为与我的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 --'
效果很好
SyntasticInfo:
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: -
答案 0 :(得分:0)
未安装Linter
npm install -g jslint