Package: vim-latexsuite Version: 20100129-2 Severity: normal Tags: upstream
Hi! When trying to replace a math environment with Shift+F5, I noticed that an extra '\' was added before the \begin and the \end command, resulting in something like[1] : \\begin{align} \\end{align} The replacement strings in the file envmacros.vim contain two '\' instead of just one. These characters do not need to be escaped in this context. Removing the extra '\' solved the problem for me. Please find enclosed a patch modifying the two lines. Best regards, Cédric [1]: if I replace the environment by equation*, the '\' character is removed, because there is a special piece of code in charge of removing '\\' when changing to equation*. -- Package-specific info: Vim related packages installed on this system: - vim-latexsuite - vim-runtime -- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (990, 'unstable'), (700, 'experimental'), (500, 'testing') Architecture: powerpc (ppc) Kernel: Linux 2.6.32-5-powerpc Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages vim-latexsuite depends on: ii python 2.6.5-11 interactive high-level object-orie ii vim-common 2:7.2.445+hg~cb94c42c0e1a-1 Vi IMproved - Common files ii vim-gtk [vim 2:7.2.445+hg~cb94c42c0e1a-1 Vi IMproved - enhanced vi editor - Versions of packages vim-latexsuite recommends: ii texlive-binaries [texlive-bas 2009-6 Binaries for TeX Live ii vim-addon-manager 0.4.3 manager of addons for the Vim edit Versions of packages vim-latexsuite suggests: ii ghostscript [postscr 8.71~dfsg2-3 The GPL Ghostscript PostScript/PDF ii gv [postscript-viewe 1:3.7.1-1 PostScript and PDF viewer for X ii okular [postscript-v 4:4.4.5-1 document viewer for KDE ii xdg-utils 1.0.2+cvs20100307-1 desktop integration utilities from ii xpdf [pdf-viewer] 3.02-9 Portable Document Format (PDF) rea ii zathura [pdf-viewer] 0.0.7-1 PDF viewer with a minimalistic int -- no debconf information -- debsums errors found: debsums: changed file /usr/share/vim/addons/ftplugin/latex-suite/envmacros.vim (from vim-latexsuite package)
--- a/ftplugin/latex-suite/envmacros.vim 2010-07-28 10:03:59.000000000 +0400 +++ b/ftplugin/latex-suite/envmacros.vim 2010-07-28 09:56:07.000000000 +0400 @@ -778,8 +778,8 @@ let second = '$$' endif else - let first = '\\begin{' . a:env . '}' - let second = '\\end{' . a:env . '}' + let first = '\begin{' . a:env . '}' + let second = '\end{' . a:env . '}' endif if b:DoubleDollars == 0
signature.asc
Description: Digital signature