Skip to content
Advertisement

Tag: vim

vim indent html code inside javascript file

here is an example of code inside of my .js file after gg=G command: As you can see html tags have the same indent. I wish it would be like in html files – nested blocks indented further. Some plugin that can help? Again, I need to indent ONLY HTML tags in .js file, not in .html file. Answer You

Recommended Vim plugins for JavaScript coding? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 10 years ago.

How to do JSLint in Vim

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. Answer You can follow the intructions from

Advertisement