Use this page to discuss script 2630 2630
- Add constructive comments, bug reports, or discuss improvements (see the guideline).
- Do not document the script here (the author should do that on vim.org).
- This page may be out of date: check the script's vim.org page above, and its release notes.
Suggested improvements
Command line params are currently Windows-specific. Compiling javascript-lint on Linux gives slightly different command line syntax. Fix is as follows:
--- a/.vim/compiler/jsl.vim Wed Feb 16 14:30:57 2011 +0000 +++ b/.vim/compiler/jsl.vim Wed Feb 16 14:57:03 2011 +0000 @@ -43,7 +43,11 @@ endif return (! empty(l:configFilespec) && filereadable(l:configFilespec) ? ' -conf "' . l:configFilespec . '"' : '') endfunction -execute 'CompilerSet makeprg=jsl\ --nologo\ --nofilelisting\ --nosummary' . escape(s:JslConfig(), ' "\') . '\ $*\ $*\ \"%\"' +if has ('win32') || has ('win64') + execute 'CompilerSet makeprg=jsl\ -nologo\ -nofilelisting\ -nosummary' . escape(s:JslConfig(), ' "\') . '\ $*\ -process\ $*\ \"%\"' +else + execute 'CompilerSet makeprg=jsl\ --nologo\ --nofilelisting\ --nosummary' . escape(s:JslConfig(), ' "\') . '\ $*\ $*\ \"%\"' +endif unlet s:scriptDir " sample output: