vim-pandoc / vim-pandoc-legacy

[UNSUPPORTED/use vim-pandoc/vim-pandoc] vim bundle for pandoc users
143 stars 23 forks source link

Syntax definition causes SIGV in MacVim #87

Open jldiaz opened 11 years ago

jldiaz commented 11 years ago

I had lots of problems trying to edit a text in markdown about Git, using filetype=pandoc and syntax on. After some research, I've found that the problem is related to the @ char appearing in some contexts. For example, opening the following minimal example with MacVim causes the segfault:

Commit `HEAD@{yesterday}` is one day before current head.

The problem was solved by commenting out the lines which define regexps for pandocPCite (lines 130 to 137) in syntax/pandoc.vim file.

Although I discovered the culprit and solved the issue (at least for me, since I don't need the PCite syntax), I still don't understand why this could cause a segfault, and why only with MacVim version (other vim versions I tried had no problem).

dsanson commented 11 years ago

There is some discussion of this on the vim_mac mailing list:

https://groups.google.com/forum/m/#!topic/vim_mac/ToO2vbVeyyo

If it is a bug in MacVim, then I suppose we should disable this regex when running the buggy versions of macvim.

lambdalisue commented 11 years ago

It is not only for MacVim but for GVim in Debian (wheezy). Maybe because I'm using self compiled version of Vim (not the one comes from package manager)?