VIM plugin and command line tool for running JSLint <http://jslint.com/>. This is project is no longer under active development. See Readme for details.
I use hallettj / jslint.vim on Ubuntu 12.04, everything is ok. but on windows 7(x64), it displays error:
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!
I try to solve the problem as follow, but not work:
rename jslint.vim/bim/jslint to jslint.exe then add to PATH
modify jslint.vim file:
" 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
install node.js, npm using npm install jslint -g to install jslint om cmd.exe
BTW: I adopt Vindle to manage my plugins.
This is my _vimrc.
I use hallettj / jslint.vim on Ubuntu 12.04, everything is ok. but on windows 7(x64), it displays error:
I try to solve the problem as follow, but not work:
jslint.vim/bim/jslint
tojslint.exe
then add toPATH
modify jslint.vim file:
npm install jslint -g
to install jslint om cmd.exeBTW: I adopt Vindle to manage my plugins. This is my _vimrc.