Bug#622650: perl_fold=1 makes vim absurdly slow

Joey Hess joeyh at debian.org
Wed Apr 13 16:54:04 UTC 2011

Package: vim
Version: 2:7.3.035+hg~8fdc12103333-1
Severity: normal

Recently (in the past half year or so), editing perl code in vim has begun to
drag horribly. There are sometimes pauses of many seconds, and often vim
responds as if it were on the other side of a transatlantic link.

I commented out perl_fold=1 in my vimrc and this went away.

I have attached enough vimrc to see it, and a sample perl file. I don't think 
there's anything special about this file; I've seen the slowdown in 
many different files. Open the file, then:


You should see what I mean; each character deleted takes enough time to
feel painfully slow when the action is repeated.

Seems likely it is reprocessing the whole file for folds after each

-- System Information:
Debian Release: wheezy/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-5-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages vim depends on:
ii  libacl1      2.2.49-4                    Access control list shared library
ii  libc6        2.11.2-11                   Embedded GNU C Library: Shared lib
ii  libgpm2      1.20.4-3.3                  General Purpose Mouse - shared lib
ii  libncurses5  5.8+20110307-1              shared libraries for terminal hand
ii  libselinux1  2.0.98-1                    SELinux runtime shared libraries
ii  vim-common   2:7.3.035+hg~8fdc12103333-1 Vi IMproved - Common files
ii  vim-runtime  2:7.3.035+hg~8fdc12103333-1 Vi IMproved - Runtime files

vim recommends no packages.

Versions of packages vim suggests:
pn  ctags                         <none>     (no description available)
pn  vim-doc                       <none>     (no description available)
pn  vim-scripts                   <none>     (no description available)

-- no debconf information

see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: makesite.pm
Type: text/x-perl
Size: 15410 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20110413/ee4c2436/attachment.pm>
-------------- next part --------------
syntax on
let perl_fold=1 " slow!!
let perl_nofold_packages=1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20110413/ee4c2436/attachment.pgp>

More information about the pkg-vim-maintainers mailing list