On Thu, 8 Oct 2009 09:07:01 +0200, Brad Phelan wrote:
> 
> >
> > It's not perfect by any means (in particular, when you first enter
> > the code it doesn't seem to line up properly, but is fine once it's
> > reformatted), but it does the job for me.
> >
> > Spencer
> 
> Hey thanks for that. I made a quick fix to your script to solve the
> problem. You just need to force vim to reindent when you hit a comma.
> 
> Add this to the bottom of the script.
> 
> set indentkeys=0{,0},0),:,0#,!^F,o,O,e,0\,,0(
> 
> It differs from the default only in that if you type a comma ',' or a
> opening round bracket '(' at the begining of a line a re-indent
> occurs.
> 
> Again thanks.
> 
> This has made my day.
> 
> Brad

Glad to help. And thanks for the fix, I'll add it to my script.

Spencer


-- 
<<< Eagles may soar, but weasels don't get sucked into jet engines >>>
9:03am up 41 days 14:59, 1 user, load average: 1.46, 0.73, 0.49
Registered Linux User #232457 | LFS ID 11703

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to