Thursday, November 25, 2010

Re: JavaScript - Incorrect Indentation when writing objects.

Hi, all.

The javascript indent file that comes with Vim is simple and does not handle
"closures" and JavaScript features well. Recently I found an indent script
that uses IndentAnything to build a more complete and JavaScript like
indentation. The URL is:

http://www.vim.org/scripts/script.php?script_id=1840

Some times it still gets messed when a function is declared inside a function.
But generally works very well.

Alessandro Antonello

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: