r751 - in /trunk/packages/vim: debian/changelog
patches/filetype.vim-better_tex_vs_plaintex.diff patches/series
zack at users.alioth.debian.org
zack at users.alioth.debian.org
Fri Aug 25 11:30:06 UTC 2006
Author: zack
Date: Fri Aug 25 11:30:05 2006
New Revision: 751
URL: http://svn.debian.org/wsvn/pkg-vim/?sc=1&rev=751
Log:
better recognition of latex files when sectioning commands are used
Added:
trunk/packages/vim/patches/filetype.vim-better_tex_vs_plaintex.diff
Modified:
trunk/packages/vim/debian/changelog
trunk/packages/vim/patches/series
Modified: trunk/packages/vim/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/debian/changelog?rev=751&op=diff
==============================================================================
--- trunk/packages/vim/debian/changelog (original)
+++ trunk/packages/vim/debian/changelog Fri Aug 25 11:30:05 2006
@@ -15,6 +15,9 @@
[ Stefano Zacchiroli ]
* Modified patches/debchangelog.vim.diff so that when opening a changelog
the entry the cursor is on gets (recursively) unfolded.
+ * Added patches/filetype.vim-better_tex_vs_plaintex.diff, implementing
+ better recognition of tex vs plaintex filetype (namely it recognizes as
+ latex files containing sectioning commands). (closes: #384479)
-- Stefano Zacchiroli <zack at debian.org> Thu, 24 Aug 2006 22:59:03 +0200
Added: trunk/packages/vim/patches/filetype.vim-better_tex_vs_plaintex.diff
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/patches/filetype.vim-better_tex_vs_plaintex.diff?rev=751&op=file
==============================================================================
--- trunk/packages/vim/patches/filetype.vim-better_tex_vs_plaintex.diff (added)
+++ trunk/packages/vim/patches/filetype.vim-better_tex_vs_plaintex.diff Fri Aug 25 11:30:05 2006
@@ -1,0 +1,13 @@
+Index: vim/runtime/filetype.vim
+===================================================================
+--- vim/runtime/filetype.vim.orig
++++ vim/runtime/filetype.vim
+@@ -1769,7 +1769,7 @@
+ call cursor(1,1)
+ let firstNC = search('^\s*[^[:space:]%]', 'c', 1000)
+ if firstNC " Check the next thousand lines for a LaTeX or ConTeXt keyword.
+- let lpat = 'documentclass\>\|usepackage\>\|begin{\|newcommand\>\|renewcommand\>'
++ let lpat = 'documentclass\>\|usepackage\>\|begin{\|newcommand\>\|renewcommand\>|part\>|chapter\>|section\>|subsection\>|subsubsection\>'
+ let cpat = 'start\a\+\|setup\a\+\|usemodule\|enablemode\|enableregime\|setvariables\|useencoding\|usesymbols\|stelle\a\+\|verwende\a\+\|stel\a\+\|gebruik\a\+\|usa\a\+\|imposta\a\+\|regle\a\+\|utilisemodule\>'
+ let kwline = search('^\s*\\\%(' . lpat . '\)\|^\s*\\\(' . cpat . '\)',
+ \ 'cnp', firstNC + 1000)
Modified: trunk/packages/vim/patches/series
URL: http://svn.debian.org/wsvn/pkg-vim/trunk/packages/vim/patches/series?rev=751&op=diff
==============================================================================
--- trunk/packages/vim/patches/series (original)
+++ trunk/packages/vim/patches/series Fri Aug 25 11:30:05 2006
@@ -7,3 +7,4 @@
scripts.vim.diff -p0
php.vim.diff -p0
de.po.diff -p0
+filetype.vim-better_tex_vs_plaintex.diff -p0
More information about the pkg-vim-maintainers
mailing list