What did you do? What works and what doesn't? Are you getting error messages?
Here is what I did:
jsl
sources from the JavaScript Lint site .- Built by
jsl
and moved it somewhere in my $PATH
. - Checked if it works by running it in a random .js file.
- Download and install Syntastic as a Pathogen package.
- I
:helptags /path/to/syntastic/doc
, because for some reason the generation of automatic Pathogen tags does not work for me. - Read the Syntastic documentation::
:help syntastic
.
Steps 1 through 5 did not take more than 3 or 4 minutes, or maybe less.
Step 6 is required, no matter which new tool you try. RTFM
I didnβt need to configure anything next to these three lines in my .vimrc (and I think the third one is superfluous):
let g:syntastic_auto_loc_list=1 let g:syntastic_disabled_filetypes=['html'] let g:syntastic_enable_signs=1
and adjust my status line a little:
%{SyntasticStatuslineFlag()}
EDIT
Here is my status line:
set statusline=%<\ %n:%f\ %m%r%y%{SyntasticStatuslineFlag()}%=line:\ %l\ of\ %L,\ col:\ %c%V,\ win:\ %{WindowNumber()}\
Do not copy it verbatim or you will get some errors due to a function call at the end. There is a paragraph about this in syntactic help.
End edit
After all this, 10 or 12 minutes, if you think you are reading the documentation, I have a very useful list of locations and signs that appear every time I save a .js file with syntax errors.
source share