a plugin to format your javascript souce code The online version is here: http://jsbeautifier.org/ I just translated it into vimscript, it works at a low performance:) and since now I don't work as a web developer, this plugin is not maintained.. usage: <leader>ff or bind the g:Jsbeautify() function to any short key you like