I have a problem with javascript indenting in vim everything works great, except that the form of a function parameter In indenting the inline functions do not work. This is a javascript only problem (no html is included)
Example
someFunc (function () {if (foo) {bar;} else {bar;}}); is indented
someFunc (function () {if (foo) {bar;} else {bar;}}); Do you have the same problem? How can I fix that? I tried some scripts from vim.org but they have the same problem.
A script that emulates textmates will have javascript indenting functionality perfect.
The expression of VIM for the evaluation of JavaScript indentation is terrible. You can fix it by installing it, or you can get it if you wish. Installing this plugin will reduce the pain every time you press Return at the end of a line of JavaScript, then your cursor is the correct level of indentation Should be located with. In addition, you will be able to use the = command to automatically auto-javascript your javascript. Install Plugin - You will be surprised how you got it without it.
Comments
Post a Comment