中工作我在Ubuntu 12.04上使用hallettj/jslint.vim,一切正常。但在Windows 7(64位),它会显示错误:无法调用JSLint! jslint.vim无法在Windows 7(x64)
Error detected while processing function
<SNR>
42_JSLint:
line 47:
The filename, directory name, or volume label syntax is incorrect ^@Error detected while processing function
<SNR>
42_JSLint:
line 48:
could not invoke JSLint!
我尝试解决问题,紧紧跟随,但是不行:
- 重命名
jslint.vim/bim/jslint
到jslint.exe
然后添加到PATH
修改jslint.vim文件:
" let s:install_dir = expand(":p:h")
if has("win32")
let s:install_dir = '"' . expand("C:\Users\Administrator.vim\bundle\jslint.vim\ftplugin\javascript"). '"'
else
let s:install_dir = expand(":p:h")
endif安装的node.js,NPM使用
npm install jslint -g
安装JSLint的OM的cmd.exe
BTW:我采用Vindle来管理我的插件。 这是我的_vimrc。