> I am using vim 7.0 on a fairly old laptop (300MHz, 128MB RAM), and I
> was having problems with it responding very slowly when editing
> reasonably large C or C++ files, something I never saw with version 6
> even on much slower machines.  I finally discovered that the problem
> was due to my using fdm=syntax.  When I changed to fdm=indent, vim
> runs as fast as I am used to.  My question is, are there any settings
> that would make fdm=syntax run faster?

You might check your settings for

   :syn sync

to see how much syncing is going on.  It shouldn't be too painful 
if it's set to start syncing 40 lines above the top (which is 
what mine is currently set to by default).  However, if it's set 
to parse from the start of the file, you'll see horrible 
performance (but ideal syntax coloring)

You can read up at

   :help :syn-sync

and the adjoining options about maxlines/minlines.

-tim





--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to