I’m new to JS & Vim. Which plugins would help me to write Javascript code?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Syntax Checking / Linting
There is a very easy way to integrate JSLint or the community-driven jshint.com (which is much better IMO) with Vim using the Syntastic Vim plugin. See my other post for more info.
Source-Code browsing / Tag-list
There’s also a very neat way to add tag-listing using Mozilla’s DoctorJS (formerly jsctags), which is also used in Cloud9 IDE‘s Ace online editor.
apt-get, Mac’s homebrew, etc.):exuberant-ctagsctagsactually runsexuberant-ctagsand not the OS’s preinstalledctags. You can find out by executingctags --version.2.
node(Node.js)DoctorJSfrom github:git clone https://github.com/mozilla/doctorjs.gitDoctorJSdir andmake install(You’ll also need themakeapp installed, but this is very basic).make installdoesn’t do the trick for the moment. For now I just add the repo’sbin/dir to my $PATH instead. See DoctorJS’s GitHub and issues pages for more info.New Project – Tern.js
DoctorJS is currently dead. There’s a new promising project called tern.js. It’s currently in early beta, and should eventually replace it.
There is a project ramitos/jsctags which uses tern as its engine. Just
npm install -git, and tagbar will automatically use it for javascript files.