Thanks, that was it! :-)

The file is detected as 'asciidoc' and when I removed
/usr/share/vim/vimfiles/syntax/asciidoc.vim I have no more errors (also
error-free with ':set filetype=text' after opening the file).

I guess I'll need to employ an override like described here:
http://vimdoc.sourceforge.net/htmldoc/filetype.html section *
*new-filetype-scripts**


Marek


On 6 June 2013 21:20, Bram Moolenaar <[email protected]> wrote:

>
> Marek Schimara wrote:
>
> > I traced this error down to matchparen.vim plugin:
> >
> > Error detected while processing function <SNR>13_Highlight_Matching_Pair:
> > line   59:
> > E363: pattern uses more memory than 'maxmempattern'
> > Press ENTER or type command to continue
> >
> > It's impossible to use vim as this error interrupts me all the time when
> > getting around the file.
> > It happens when loading a relatively small (198kB) text file containing
> > port load dump from opensm (attached). I suspect the problem comes from
> the
> > contents - the file contains mostly (about 97% lines) of text like this:
> >
> >  [1] => IN 1106 OUT 1116
> >  [2] => IN 1106 OUT 1098
> >  [3] => IN 1106 OUT 1116
> >  [4] => IN 1106 OUT 1098
> >  [5] => IN 1106 OUT 1080
> >  [6] => IN 1106 OUT 1134
> >  [7] => IN 1106 OUT 1134
> >  [8] => IN 1106 OUT 1116
> >  [9] => IN 1106 OUT 1098
> >  [10] => IN 1106        OUT 1116
> >  [11] => IN 1106        OUT 1134
> >  [12] => IN 1106        OUT 1116
> >  [13] => IN 1106        OUT 1098
> >  [14] => IN 1106        OUT 1044
> >  [15] => IN 1106        OUT 1134
> >  [16] => IN 1106        OUT 1098
> >  [17] => IN 1106        OUT 1098
> >  [18] => IN 1106        OUT 1080
> >
> > Interestingly, I get the error also when starting vim with --noplugin,
> bun
> > only once, and if my .vimrc contains colorscheme.
> > If I comment it out, the error goes away (still with --noplugin).
> > Without --noplugin, it doesn't matter if colorscheme is used or not.
> >
> > BUT, with --noplugin, colorcheme left out of .vimrc, then added with
> > ':colorscheme chocolateliquor' once inside vim, I get no error !?? If I
> > source /usr/share/vim/vim73/plugin/matchparen.vim, I get it again.
> > This is getting quite confusing.
> >
> > So I disabled colorscheme and removed
> > /usr/share/vim/vim73/plugin/matchparen.vim. Both seem necessary to get
> rid
> > of the error...
> >
> > I have tried other schemes (adrian, camo, ...) with the same results.
>
> It's most likely not the matchparen plugin itself that causes the
> problem, but the syntax you are using.  Matchparen uses the syntax to
> figure out what are comments.
>
> Try disabling the syntax highlighting.  If that solves the problem,
> contact the syntax file maintainer.
>
> --
> I AM THANKFUL...
> ...for the clothes that fit a little too snug because it
> means I have more than enough to eat.
>
>  /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net
> \\\
> ///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/\\\
> \\\  an exciting new programming language -- http://www.Zimbu.org
>  ///
>  \\\            help me help AIDS victims -- http://ICCF-Holland.org
>  ///
>

-- 
-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to