Package: vim-runtime Version: 1:7.0-010+1 Severity: minor Tags: patch python ftplugin sets include to s*\(from\|import\), which gets false matches. It should be set to ^\s\(from\|import\). Attached patch does that.
I have vim 7.0 from experimental, but the bug existed in 6.4 as well.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (100,
'experimental')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/dash
Kernel: Linux 2.6.16-1-amd64-k8
Locale: LANG=C, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
vim-runtime depends on no packages.
Versions of packages vim-runtime recommends:
ii vim 1:7.0-010+1 Vi IMproved - enhanced vi editor
ii vim-full 1:7.0-010+1 Vi IMproved - enhanced vi editor -
-- no debconf information
--
Jan 'Bulb' Hudec <[EMAIL
PROTECTED]>
--- /usr/share/vim/vim70/ftplugin/python.vim.orig 2006-05-11 18:07:06.000000000 +0200 +++ /usr/share/vim/vim70/ftplugin/python.vim 2006-05-14 20:26:00.000000000 +0200 @@ -8,7 +8,7 @@ setlocal cinkeys-=0# setlocal indentkeys-=0# -setlocal include=\s*\\(from\\\|import\\) +setlocal include=^\\s*\\(from\\\|import\\) setlocal includeexpr=substitute(v:fname,'\\.','/','g') setlocal suffixesadd=.py setlocal comments-=:%
signature.asc
Description: Digital signature

