Monday, May 14, 2018

Re: Putting syntax sync fromstart in ~/.vimrc

On Mo, 14 Mai 2018, Petr Mach wrote:

> > Another is using an autocommand to run the command automatically after
> > the syntax changes
> >
> > :au Syntax * syntax sync fromstart
> >
> > This command must be in your vimrc after the syntax highlighting is
> > turned on, or it will happen before the syntax change still!
>
> I'm trying it, but this is do not work for me. Syntax is showed incorrectly still. Syntax is repaired after manual comand :synatx sync fromstart.

You are probably experiencing it because the syntax file uses some
complex regular expressions and then it times out. You might want to
increase the 'redrawtime' setting.

In any case, you should always mention the filetype/syntax in use and
possibly post the :syntime report when you are experiencing this issue.

Best,
Christian
--
Ausführungsbestimmungen sind Erklärungen zu den Erklärungen, mit denen
man eine Erklärung erklärt.
-- Abraham Lincoln

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: