Hi, The attached patch improves indenting of JavaScript code in Vim and also fixes the indenting issues mentioned in some of the earlier posts here. It also adds indenting of code that is not within braces. Indenting is done through the cindent function (get_c_indent) with the cindent options containing 'J1' (no 'j1' required now) . I've tested this code for quite some time and have found it working satisfactorily. If others could also try out the patch and test it, that would be quite helpful. Review and comments welcome.
Kind regards, /harig -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php
jsindent-20110821.diff
Description: Binary data
