如何使用JSHint的Syntastic Vim插件验证JavaScript代码?
环境:
我在VIM + JSLint的解决方案之后安装了什么?:
.vimrc中:
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" My Bundles here:
Bundle 'scrooloose/syntastic'
filetype plugin indent on " required!
let g:syntastic_enable_signs=1
let g:syntastic_auto_jump=1
let g:syntastic_stl_format = '[%E{Err: %fe #%e}%B{, }%W{Warn: %fw #%w}]'
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
Run Code Online (Sandbox Code Playgroud)
寻找已安装的可执行文件:
$ which gjslint …Run Code Online (Sandbox Code Playgroud)