Bug#858304: vim-runtime: markdown syntax highlighting (and possibly others) goes crazy and drives the terminal crazy

Francesco Poli (wintermute) invernomuto at paranoici.org
Mon Mar 20 21:29:20 UTC 2017


Package: vim-runtime
Version: 2:8.0.0197-3
Severity: normal

Hello Debian Vim Maintainers,
I have experienced this bug for a fairly long time, when editing
markdown documents with vim. It has been triggered in a seemingly
random manner.

I finally found a reliable way to reproduce it.

Steps to reproduce:

  0) open the attached test.md file:

     $ vim -u NONE test.md

  1) enable syntax highlighting:

     :set bg=dark
     :syn on

  2) go to the end of the file:

     [Shift+G]

  3) go back to the beginning of the file (line by line):

     [k].....[k]     ← hold the key pressed until you reach the first line

  4) visualize file info on the status line:

     [Ctrl+G]

  5) the syntax highlighting has gone crazy (even the status line is
     in boldface!): see the attached screenshot
     wrong_vim_syntaxmarkdown.png

  6) exit from vim:

     :q

  7) the terminal (xterm), or rather the shell (bash), has also gone
     crazy (it now prints everything in boldface by default): see
     the attached screenshot
     wrong_vim_syntaxmarkdown2.png

  8) the terminal won't come back to normal behavior until I quit it;
     another trick to regain the normal behavior of the terminal is
     opening test.md again, enable syntax highlighting, and exit vim
     (steps 0, 1, and 6 above)

Please investigate this bug and fix it and/or forward my report
upstream.

Thanks for your time!
Bye.


-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (800, 'testing'), (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.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            2:8.0.0197-3
ii  vim-gtk [vim]  2:8.0.0197-3
ii  vim-tiny       2:8.0.0197-3

vim-runtime suggests no packages.

-- no debconf information
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrong_vim_syntaxmarkdown.png
Type: image/png
Size: 2147 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20170320/1c3639ca/attachment.png>
-------------- next part --------------
A test markdown document
========================

## Horizontal rules

Here's one:

----------

Here's another one:

*  *  *  *

Yet another one:

______

## Tables

+-------+-------+--------+------------------+
| One   |  Two  | Three  | Long             |
|       |       |        | text             |
+=======+=======+========+==================+
|  1    | 2     |   3    | * list item 1    |
|       |       |        | * list item 2    |
+-------+-------+--------+------------------+
|  11   | 22    |  33    | Some cells may   |
|       |       |        | span multiple    |
|       |       |        | lines!           |
+-------+-------+--------+------------------+

: A grid table

-------------- next part --------------
A non-text attachment was scrubbed...
Name: wrong_vim_syntaxmarkdown2.png
Type: image/png
Size: 648 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-vim-maintainers/attachments/20170320/1c3639ca/attachment-0001.png>


More information about the pkg-vim-maintainers mailing list