Vim Tips Wiki

Use this page to discuss script 2727 jsbeautify: javascript source code formatter

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on
  • This page may be out of date: check the script's page above, and its release notes.


I have problem with numbers like 2e-9 => 2e - 9 so I made a little fix at (uncommented lines with fixed regexp).


To use 2 spaces instead of a tab for indenting. Change line#295 to => let s:opt_indent_char = " "


--April 6, 2012
What is the above for? Perhaps remove that comment? JohnBeckett 03:54, April 6, 2012 (UTC)