Bug#400771: Syntax highlighting causes Vim to hang
James Vega
jamessan at debian.org
Fri Jan 18 05:34:43 UTC 2008
On Mon, Jun 18, 2007 at 10:50:24PM +0200, Bram Moolenaar wrote:
> > Given the attached Makefile.am, it is possible to get Vim to hang in an
> > infinite loop while doing syntax highlighting. This seems to be
> > dependant on the height of the Vim window as I am able to reproduce it
> > with 'lines' set to certain values but not others.
> >
> > vim -u NONE Makefile.am
> > :set lines=3D24
> > :set ruler (not necessary but it is useful to see what line the cursor
> > is on when Vim starts to hang)
> > :setf automake
> > :syn on
> > j (press and hold until you reach the end of the file, using G will
> > not work)
> > k (press and hold until Vim hangs or you reach the top of the file.
> > If Vim did not hang, repeat the previous and current steps. This
> > reliably hangs for me when the cursor gets to line 38)
> >
> > You are able to press <C-c> to break out of the loop that Vim is in but
> > moving around via j/k is more likely to cause the hang now.
>
> I can reproduce it. Looks like a hang or very slow pattern matching in
> the syntax syncing stuff. One more for the todo list.
This looks to be fixed by patch 7.1.227.
James
--
GPG Key: 1024D/61326D40 2003-09-02 James Vega <jamessan at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20080118/408cae17/attachment.pgp
More information about the pkg-vim-maintainers
mailing list