Skip to content

Instantly share code, notes, and snippets.

@seratch
Created May 10, 2011 21:17
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save seratch/965398 to your computer and use it in GitHub Desktop.
Save seratch/965398 to your computer and use it in GitHub Desktop.
How to install jslint.vim on Mac OS X
# Rhino (Java required)
curl ftp://ftp.mozilla.org/pub/mozilla.org/js/rhino1_7R3.zip > ./rhino.zip
unzip rhino.zip
mkdir -p ~/Library/Java/Extensions
cp -p rhino1_7R3/js.jar ~/Library/Java/Extensions/
rm -rf rhino.zip ./rhino1_7R3
# -- chekcing installed
# java org.mozilla.javascript.tools.shell.Main
# jslint.vim (Rake required)
git clone https://github.com/hallettj/jslint.vim.git
cd jslint.vim
rake install
# -- editing .vimrc
# filetype plugin on
# let g:JSLintHighlightErrorLine = 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment