I can\'t seem to get inline Javascript indenting properly in Vim. Consider the following:
$(document).ready(function() { // Closing brace correctly inde
In case someone comes here please note the vim-javascript by pangloss at https://github.com/pangloss/vim-javascript helped me so far, i.e. Vim 7.4. And the above solutions from oligofren and Charles Roper didn't.
vim-javascript
pangloss