sponsor Vim development Vim logo Vim Book Ad

OOP javascript indentation : This indentation script for OOP javascript (especially for EXTJS)

 script karma  Rating 243/92, Downloaded by 6636  Comments, bugs, improvements  Vim wiki

created by
Ryan Fabella
 
script type
indent
 
description
This indentation script for javascript

example of public method of class

var testing = function(){
  return {
    showDialog:new dialog([
      {
        1:'testing',
        2:'coba',
        3:'jajal'
      }
    ]);
  }
}

Comments are welcome! ryanthe@gmail.com
 
install details
put at ~/.vim/indent
 

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.vim 0.1patch2 2007-09-24 6.0 Ryan Fabella Former:
/**
* This is a test
*/
foo();

Proper:
/**
* This is a test
*/
foo();


patch from Devin Weaver <suki@tritarget.org>
javascript.vim 0.1patch1 2007-07-22 6.0 Ryan Fabella thanks to drdr.xp@gmail.com
patch on case
var o = {};
javascript.vim 0.1 2007-06-22 6.0 Ryan Fabella Initial upload
ip used for rating: 54.225.1.66

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