Bug#524898: vim-latexsuite: Double folding on Tex environments
Kay Smarczewski
kay.smarczewski at mailbox.tu-dresden.de
Mon Apr 20 17:13:45 UTC 2009
Package: vim-latexsuite
Version: 20060325-5
Severity: minor
Tags: patch
I installed the vim-latexsuite package directly through aptitude. But
I think the patch vim-latexsuite (20060325-5) foldingfix[1] has not been applied properly.
>From the patch contents:
> call AddSyntaxFoldItem('^\s*\\begin{'.s,'^\s*\\end{'.s,0,0)
> + " call AddSyntaxFoldItem('^\s*\\begin{'.s,'^\s*\\end{'.s,0,0)
> + call AddSyntaxFoldItem('^\s*\\begin{'.s,'\(^\|\s\)\s*\\end{'.s,0,0)
So I think the deletion of this first line is missing. The attached patch solved the problem for me.
1. http://patch-tracking.debian.net/patch/series/view/vim-latexsuite/20060325-5/foldingfix
-- Package-specific info:
Vim related packages installed on this system:
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (900, 'testing'), (500, 'stable'), (100, 'unstable'), (1, 'experimental')
Architecture: x86_64
Kernel: Linux 2.6.26-2-amd64 (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/bash
-------------- next part --------------
--- /usr/share/vim/addons/ftplugin/latex-suite/folding.vim 2008-04-19 16:10:25.000000000 +0200
+++ folding.vim 2009-04-20 18:19:02.000000000 +0200
@@ -284,7 +284,6 @@
" In other words, the pattern is safe, but not exact.
call AddSyntaxFoldItem('^\s*\\'.s.'{[^{}]*$','^[^}]*}',0,0)
else
- call AddSyntaxFoldItem('^\s*\\begin{'.s,'^\s*\\end{'.s,0,0)
" call AddSyntaxFoldItem('^\s*\\begin{'.s,'^\s*\\end{'.s,0,0)
call AddSyntaxFoldItem('^\s*\\begin{'.s,'\(^\|\s\)\s*\\end{'.s,0,0)
endif
More information about the pkg-vim-maintainers
mailing list