Michael Fellinger
9/6/2007 1:37:00 AM
On 9/6/07, Rick DeNatale <rick.denatale@gmail.com> wrote:
> On 9/5/07, Bertram Scharpf <lists@bertram-scharpf.de> wrote:
> > Hi,
> >
> > Am Donnerstag, 06. Sep 2007, 07:23:36 +0900 schrieb M. Edward (Ed) Borasky:
> > > John Carter wrote:
> > > > "syntax error, unexpected $end, expecting kEND"
> > > >
> > > > With the line number pointing to the last line of the file.
>
> > > > I wish I could think of an easier way, like the highlighting emacs
> > > > does for '(; and '{'
> > >
> > > I think vim syntax coloring highlights xx-end pairs,
>
> I find that the best way to find these in (g)vim is
>
> ggVG=
>
> ggVG selects all the lines in the file and then = re-formats the indentation.
gg=G
move to start of file, initiate indent-action, move to end of file :)
and yeah, that's how i find 99.5% of missing ends, unless i use some
regexps that mess up the indentation :|
^ manveru