Bugzilla – Bug 1221838
vim-plugin-markdown unpredictable behaviour
Last modified: 2024-07-01 19:31:26 UTC
Created attachment 873710 [details] the output of the supportconfig command I noticed a strange behaviour when opening an md file, for example: vim /usr/share/doc/packages/intel-media-driver/README.md File /usr/share/doc/packages/intel-media-driver/README.md was opened with all expanded 214 lines but if you move the cursor to an empty line from the beginning, after about 5 seconds, the user will see the message "+--213 lines: ## Introduction" If you press space key on one of the "+" signs at the beginning of the paragraphs, sometimes it may open all the 213 lines instead of a single desired paragraph, sometimes it opens only the desired paragraph, but if you go to an empty line, after about 5 seconds it will contract all the lines in the file and the user will see the message "+--213 lines: ## Introduction" The fact that when you go to an empty line at the beginning and it contracts all the lines in the file and the user will see the message "+--213 lines: ## Introduction" after a few seconds does seem to be unpredictable. The "culprit" seems to be the package vim-plugin-markdown-2.0.0+20220926-bp156.9.1.noarch. To be honest: it may be or it may not be a bug, I put the severity "minor". For me the behaviour of the vim text editor in this case is a bit strange and unpredictable. I worked with and created md documentation. Installation was done from SLES 15 SP6 official ISOs: SLE-15-SP6-Full-x86_64-PublicBeta-202403-Media1.iso and SLE-15-SP6-Full-x86_64-PublicBeta-202403-Media2.iso. I have verified the checksums before installation. The I registered with SLES 15 SP6 Server beta code and I entered the command "zypper dup". The following are the installed packages related to vim: rpm -qa | grep vim vim-icinga2-2.13.6-bp156.3.47.x86_64 vim-plugin-markdown-2.0.0+20220926-bp156.9.1.noarch vim-data-9.0.2103-150500.20.6.1.noarch vim-small-9.0.2103-150500.20.6.1.x86_64 vim-plugin-multiplesearch-1.3-bp156.9.1.noarch vim-poke-3.3-bp156.1.2.noarch vim-plugin-zoomwin-24-bp156.9.1.noarch vim-9.0.2103-150500.20.6.1.x86_64 vim-plugin-salt-20170630-bp156.9.1.noarch vim-fzf-0.42.0-bp156.1.12.noarch vim-data-common-9.0.2103-150500.20.6.1.noarch vim-plugin-diffchanges-0.6+g346dae2-bp156.9.1.noarch vim-plugin-rails-5.2-bp156.9.1.noarch Best regards, Chris
I'll see if I can reproduce this under 9.1.330 (current version on SLE 12 and 15).
I cannot reproduce this under Vim 9.1.0330 on SLE-15-SP5. 9.1.0330 is currently also being shipped for SLE-15-SP6. It seems to work just fine, I can expand the paragraphs that are selected to be expanded, and I can't trigger the behaviour you mentioned regarding going to an empty line and waiting for a bit. Nothing seems to happen, it's behaving normally for me. I'm also using vim-plugin-markdown-2.0.0+20220926, same version, so I think it may have been something in Vim directly? This seems to be a related issue: https://github.com/preservim/vim-markdown/issues/516 Do you have a special .vimrc you're using? Could you share your settings? I tried using a completely blank Vim. No settings, only the default ones shipped with out Vim package.
I'm closing this for now. Feel free to reopen it if the issue persists, I wasn't able to reproduce it, but if you'd like me to have a look again or if you find anything new, just reopen this ticket. Thanks, Martin.