sponsor Vim development Vim logo Vim Book Ad

Better Javascript Indentation : Vastly improved javascript indentation

 script karma  Rating 140/59, Downloaded by 5125  Comments, bugs, improvements  Vim wiki

created by
Darrick Wiebe
 
script type
indent
 
description
This is based off of the indentation script for ruby which is well written and fast. It is nearly perfect but will sometimes miss edge cases. It usually recovers those errors at the end of a block though, so overall even very long files will be largely correct.

Please fork this project at http://github.com/pangloss/vim-javascript to help make it even better.

This script includes Yi Zhao's javascript syntax script v 0.7.7
 
install details
Unzip the file in your .vim directory.

Or to be sure you have the latest version:
git clone git://github.com/pangloss/vim-javascript.git
cd vim-javascript
rake install
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
javascript.zip 1.0.0 2009-08-31 6.0 Darrick Wiebe Initial upload
ip used for rating: 44.192.71.254

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github