Thanks for your reply!
I'm certainly gonna try that, as soon as I've got the right (external)
formatters.

On Tue, Aug 14, 2012 at 5:51 PM, Marcin Szamotulski <[email protected]>wrote:

> On 08:40 Tue 14 Aug     , Chiel ten Brinke wrote:
> > Hey,
> > I have a question regarding code formatting.
> > Is it possible to get real time code formatting in vim? (i.e. the code
> formats while you type, just like in visual studio).
> >
> > To make things clear: I don't mean just code-indenting, but formatting.
> >
> > A small example:
> > function foo(){alert("bar");}
> >
> > turns to:
> > function foo() {
> >     alert("bar");
> > }
> >
> > Kind regards
> >
> > --
> > You received this message from the "vim_dev" 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
>
> Hi,
>
> There is no option that you can turn and get it. But it is possible to
> run gw on CursorMovedI event over a current paragraph (or some other
> external formatting tool). But this might be slow though.
>
> Best,
> Marcin
>
> --
> You received this message from the "vim_dev" 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
>

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui