All Projects → vim-scripts → Javascript Indent

vim-scripts / Javascript Indent

Javascript indenter (HTML indent is included)

Labels

Projects that are alternatives of or similar to Javascript Indent

Hypergit.vim
This git plugin provides many awesome features so that you don't need to type commands anymore..
Stars: ✭ 59 (-16.9%)
Mutual labels:  viml
Vdbi Vim
Database client for Vim
Stars: ✭ 63 (-11.27%)
Mutual labels:  viml
Vim Scmdiff
Vim script to highlight lines changed from a base version in SCM
Stars: ✭ 65 (-8.45%)
Mutual labels:  viml
Colorsbox
Stars: ✭ 61 (-14.08%)
Mutual labels:  viml
The Nerd Tree
A tree explorer plugin for navigating the filesystem
Stars: ✭ 62 (-12.68%)
Mutual labels:  viml
Tcomment
An extensible & universal comment plugin that also handles embedded filetypes
Stars: ✭ 64 (-9.86%)
Mutual labels:  viml
Vim Partial
Makes creating partials in your code a breeze!
Stars: ✭ 58 (-18.31%)
Mutual labels:  viml
Vimmate
Custom vim like Textmate for Ruby on Rails development
Stars: ✭ 70 (-1.41%)
Mutual labels:  viml
Html5 Syntax.vim
HTML5 syntax file for vim.
Stars: ✭ 62 (-12.68%)
Mutual labels:  viml
Xvim
Powerfull vim configuration for C/C++/GO/JS coder(好用的vim插件集成包,支持C/C++/GO/JS)
Stars: ✭ 65 (-8.45%)
Mutual labels:  viml
Vim Ruby Conque
Vim plugin to display ruby, rake, and rspec output colorized in ConqueTerm. Note: repeated runs of conqueterm may cause it to eat your shell ttys. I am no longer maintaining this.
Stars: ✭ 61 (-14.08%)
Mutual labels:  viml
Showmarks
Visually shows the location of marks.
Stars: ✭ 61 (-14.08%)
Mutual labels:  viml
Camelcasemotion
Motion through CamelCaseWords and underscore_notation.
Stars: ✭ 64 (-9.86%)
Mutual labels:  viml
Vim Blockle
Brace yourself, it's time to toggle your ruby blocks!
Stars: ✭ 60 (-15.49%)
Mutual labels:  viml
Archidroid Legacy
Legacy ArchiDroid Repo / New -> https://github.com/ArchiDroid/ArchiDroid
Stars: ✭ 68 (-4.23%)
Mutual labels:  viml
Bisectly
Binary search tool
Stars: ✭ 59 (-16.9%)
Mutual labels:  viml
Vim Eighties
Automatically resizes your windows
Stars: ✭ 64 (-9.86%)
Mutual labels:  viml
Vim Spotifysearch
Search spotify in Vim and play songs.
Stars: ✭ 71 (+0%)
Mutual labels:  viml
Bringing Vim To The People
An lo, on the fourth day he did step down from the mountain, and with him VIM did follow . . . .
Stars: ✭ 69 (-2.82%)
Mutual labels:  viml
Vim Startuptime Benchmark
Stars: ✭ 65 (-8.45%)
Mutual labels:  viml

This is a mirror of http://www.vim.org/scripts/script.php?script_id=3081

Hosted at: http://code.google.com/p/web-indent/

*Update: (3/30/11) - Release Candidate 1.0 - Progress Started. *Update: (5/14/10) - Beta 3.0 Released (See Below) (First Release Candidate) *Update: (5/6/10) - Beta 2.2 Released (See Below) *Update: (5/6/10) - Beta 2.1 Released (See Below) *Update: (5/5/10) - Beta 2.0 Released (See Below) *Update: (5/3/10) - Beta 1.0 Released (See Below)

Summary:

I wrote this basically due to the lack of any good javascript indent plugin out there. And due to javascripts lax syntactical structure cindent() just wont cut it.

Web-Indent handles all basic forms of add notes, bugs and multi-line and singe line objects: var x = { y : { z; } }

var y = [ x, y, z ]

var z = {x : x, y : y, w: w};

t; // no indent

Handles all basic control structures (with or without leading '{'): if(x) // comment y; z;

Handles inline and nextline control structure block initializers ('{' in the vernacular): if(x) { x; } else { z; }

Handles multi-line function declarations: var x = function( y, // notice one tab over z, w) { t; }

Handles multi-line control structure statements: if( x == y || y == z || z == w) { t; }

This indenter is also fully compatible with Mootools and esp. its Class package. I haven't tested it with any of the other frameworks, but due to their similar syntactical nature, I'm assuming they will work as will.

Included Files:

  ~test.js - A sample js file with various coding patterns.  Set tabstop=6 and shiftwidth=6 and comments should line up correctly.
  ~indent/javascript.vim - The core indenting file
  ~indent/html.vim - An updated version of the pre-packaged html indenter that utilizes javascript.vim (MUST BE LOCATED IN SAME DIRECTORY!!)

Release Notes:

~1.0 Released: (5/15/10) - Fixed: Continuation Lines - Removed: Logging

~Beta 3.0 Released: (5/14/10) - Fixed: Runaway Indentation.
- Fixed: indentkeys now correctly invoke indent. - Fixed: Comment lines with keywords are correctly indented. Thanks to trojhlav for pointing it out. - Notes: \ First Release Candidate (v 1.0) \ Correctly indented entire jQuery source. \ Correctly indented entire MooTools source. - Concerns: \ Still no support for continuation lines. ~

PS: I'm also not sure if I'm allowed to repost the html.vim, since I couldn't find a license for it. I'm pretty sure it was the one packaged with vim by default. If anyone has any objections, I'll take it down immediately.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].