Package: vim-runtime
Version: 2:7.4.712-3
Severity: wishlist
Tags: patch

As described in 
http://stackoverflow.com/questions/3094331/how-to-fold-long-docstrings-in-python-source-code-in-vim,
here's a patch to allow folding (long) strings in Python.


-- System Information:
Debian Release: stretch/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

vim-runtime depends on no packages.

Versions of packages vim-runtime recommends:
ii  vim-athena [vim]  2:7.4.712-3
ii  vim-gnome [vim]   2:7.4.712-3

vim-runtime suggests no packages.

-- no debconf information

-- debsums errors found:
debsums: changed file /usr/share/vim/vim74/syntax/python.vim (from vim-runtime 
package)
--- /usr/share/vim/vim74/syntax/python.vim.orig	2015-08-12 08:50:23.679215611 +0200
+++ /usr/share/vim/vim74/syntax/python.vim	2015-08-12 08:51:02.933383862 +0200
@@ -99,13 +99,13 @@
       \ start=+[uU]\=\z(['"]\)+ end="\z1" skip="\\\\\|\\\z1"
       \ contains=pythonEscape,@Spell
 syn region  pythonString
-      \ start=+[uU]\=\z('''\|"""\)+ end="\z1" keepend
+      \ start=+[uU]\=\z('''\|"""\)+ end="\z1" keepend fold
       \ contains=pythonEscape,pythonSpaceError,pythonDoctest,@Spell
 syn region  pythonRawString
       \ start=+[uU]\=[rR]\z(['"]\)+ end="\z1" skip="\\\\\|\\\z1"
       \ contains=@Spell
 syn region  pythonRawString
-      \ start=+[uU]\=[rR]\z('''\|"""\)+ end="\z1" keepend
+      \ start=+[uU]\=[rR]\z('''\|"""\)+ end="\z1" keepend fold
       \ contains=pythonSpaceError,pythonDoctest,@Spell
 
 syn match   pythonEscape	+\\[abfnrtv'"\\]+ contained
@@ -242,7 +242,7 @@
 	  \ contained contains=ALLBUT,pythonDoctest,@Spell
     syn region pythonDoctestValue
 	  \ start=+^\s*\%(>>>\s\|\.\.\.\s\|"""\|'''\)\@!\S\++ end="$"
-	  \ contained
+	  \ contained fold
   else
     syn region pythonDoctest
 	  \ start="^\s*>>>" end="^\s*$"

Reply via email to