Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 120911
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T03:53:11+00:00 2026-05-11T03:53:11+00:00

I spend my days in vim, currently writing a lot of JavaScript. I’ve been

  • 0

I spend my days in vim, currently writing a lot of JavaScript. I’ve been trying to find a way to integrate JSLint or something similar into vim to improve my coding. Has anyone managed to do something like this?

I tried this: Javascript Syntax Checking From Vim, unfortunately the output is very crude.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T03:53:12+00:00Added an answer on May 11, 2026 at 3:53 am

    You can follow the intructions from JSLint web-service + VIM integration or do what I did:

    Download http://jslint.webvm.net/mylintrun.js and http://www.jslint.com/fulljslint.js and put them in a directory of your choice.

    Then add the following line to the beginning of mylintrun.js:

    var filename= arguments[0]; 

    and change last line of code in mylintrun.js (‘print( …)’) to:

     print ( filename + ':' + (obj['line'] + 1) + ':' + (obj['character'] + 1) + ':' + obj['reason'] ); 

    This makes in mylintrun.js output a error list that can be used with the VIM quickfix window (:copen).

    Now set the following in VIM:

    set makeprg=cat\ %\ \\\|\ /my/path/to/js\ /my/path/to/mylintrun.js\ % set errorformat=%f:%l:%c:%m 

    where you have to change /my/path/to/js to the path to SpiderMonkey and /my/path/to/mylintrun.js to the path where you put the JS files.

    Now, you can use :make in VIM and use the quickfix window (:he quickfix-window) to jump from error to error.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I spend three days in find out how I can connect to an https
I've spent a couple of days trying to find out what's going on. I
I've been struggling for a few days with this problem , learning a lot
I probably spend far too much time trying to make my visual interfaces look
I'm thinking of something smaller than a laptop that i can spend my hours
I am trying to decide whether to learn ASP.NET MVC (or to spend the
Ok, I really spend 2 days on this and it has gotten me stumped.
I have been working now for few days on a small C program which
I spend some days to search solution about this trouble : I have an
I spend most of my time in Eclipse these days, so I thought I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.