preservim / vim-markdown

Markdown Vim Mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

very slow with long files

g-i-o-r-g-i-o opened this issue · comments

Preservim is really slow with long files that contain numbers as the first character

For example I have a file made of 5000 lines, and it takes about 2 seconds to enter insert mode.

This happens on windows and on linux, with the latest vim.

I can't post the file for copyright reasons :-(

  1. zzz
  2. zzz
  3. zzz
  4. zzz
  5. zzz
  6. zzz
  7. zzz
  8. zzz
  9. zzz
  10. zzz
  11. zzz
  12. zzz
  13. zzz
  14. zzz
  15. zzz
  16. zzz
  17. zzz
  18. zzz
  19. zzz
  20. zzz
  21. zzz
  22. zzz
  23. zzz
  24. zzz
  25. zzz
  26. zzz
  27. zzz
  28. zzz
  29. zzz
  30. zzz
  31. zzz
  32. zzz
  33. zzz
  34. zzz
  35. zzz
  36. zzz
  37. zzz
  38. zzz
  39. zzz
  40. zzz
  41. zzz
  42. zzz
  43. zzz

Thank you for reporting. I had the same issue. Disabling folding fixed poor performance with large Markdown files for me.

See also: https://fosstodon.org/@meonkeys/109604133237227739