Thursday, July 29, 2010

language-specific indenting?

So an emacs-using co-worker was surprised when he found out that *I* didn't know how to do this (taking it to mean that vim didn't):

If I'm given a perl script (I'm using this as an example since it's an especially tricky thing to parse from what I understand), and it's not at all indented, can perl automatically indent it for me? Ideally, this would include things like datastructures, but it seems in my attempts, that that's where parsing/indenting fails.

I'm using the '=' command for indentation.

Thank you!
-lev

--
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: