vim hangs when loading/scrolling attached file

Bug #934591 reported by Jack Leigh
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
vim
New
Undecided
auto-bugs
vim (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

When the attached file is loaded in vim it lags massively and uses 100% of one cpu. Tested on two computers, maverick and oneiric. The maverick instance of vim is untouched/as installed.
Something to do with really long lines/wrapping?

ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: vim 2:7.3.154+hg~74503f6ee649-2ubuntu3
ProcVersionSignature: Ubuntu 3.0.0-16.29-generic-pae 3.0.20
Uname: Linux 3.0.0-16-generic-pae i686
ApportVersion: 1.23-0ubuntu4
Architecture: i386
Date: Fri Feb 17 23:48:53 2012
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Release i386 (20091028.5)
SourcePackage: vim
UpgradeStatus: Upgraded to oneiric on 2011-09-22 (148 days ago)

Revision history for this message
Jack Leigh (leighman) wrote :
Revision history for this message
Vadim Rutkovsky (roignac) wrote :

Confirmed and sent upstream

Changed in vim (Ubuntu):
status: New → Confirmed
Revision history for this message
David Hoeffer (d-hoeffer) wrote :

It's caused by the syntax highlighting, which uses regular expression and slows down to a crawl on long lines. Do ":syntax off" and you'll be able to work fine. Alternatively you can limit syntax highlighting to the fist n columns by doing for example "set synmaxcol=120".

Revision history for this message
Vadim Rutkovsky (roignac) wrote :

Upstream comment from Bram:
"Try this:

       :set synmaxcol=100

The syntax rules are too complex.

For .svg we use the XML syntax file, CCing the maintainer.
Not sure if we can do anything about it."
---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.