0

I am having problems with vim LaTeX Suite opening big files like this (which is not that big, just 195K).

The opening of this file takes up to about 8 seconds. If I comment all the lines, it opens instantaneously, so I guess LaTeX Suite is somehow parsing the file. It also opens fast if I remove the file extension, so it is definitely a LaTeX Suite problem.

I really like using vim and I hope there is some way to fix this. I have other files, a bit longer, which takes up to one minute to open.

I am using an up-to-date Arch Linux. Vim version is 7.4 (Arch package 7.4.16-2) and LaTeX Suite is from Arch package vim-latexsuite 20130126-1

I have already reported the problem in the vim LaTeX Suite mailing list (back in July), but I didn't get any answer yet.

Alejandro DC
  • 225
  • 3
  • 11
  • Have you considered using vim without latex-suite? It isn't too hard to add a bunch of lines to your ftplugin/latex.vim file that reproduce some of the more lightweight latex-suite functions, while avoiding some of the "bloat" of latex-suite. – Pascal Bugnion Sep 05 '13 at 08:24
  • No, I didn't try. I use a lot of functionalities of latex-suite, but I guess I could survive without most of them. Anyway, I want also to get confirmation that this is actually a bug and not just some issue with my configuration. – Alejandro DC Sep 05 '13 at 08:41
  • I can confirm that your test file opens instantly in (g)vim without latex-suite, so the problem lies (probably) with latex-suite and not the basic functionality that vim provides for .tex files (like syntax highlighting etc.). – Pascal Bugnion Sep 05 '13 at 08:46
  • I also found that the snipmate plugin adds a lot of the functionality I used to use latex-suite for (mostly shortcuts to define complex environments etc.). – Pascal Bugnion Sep 05 '13 at 08:48
  • 1
    Thanks. I am moving to LaTeX-Box, which is way simpler, but enough. – Alejandro DC Sep 05 '13 at 09:09
  • 1
    Use a Vim that has profiling built-in (e.g. the version that ships with Cygwin), and find out what exactly is causing the slowdown. – Ingo Karkat Sep 05 '13 at 10:31
  • Thanks! I just did it, and the problem is in tex_latexSuite.vim: 54786.039 54715.189 54545.964: sourcing /usr/share/vim/vimfiles/ftplugin/tex_latexSuite.vim (i.e. ~55 sec) – Alejandro DC Sep 05 '13 at 11:09
  • I went back to LaTeX Suite, it is way better than the alternatives, even it it takes 1 minute to open a 3000+ lines file (and even when their developers do not answer the bug reports) – Alejandro DC Nov 21 '13 at 09:33

0 Answers0