vim-pandoc-legacy icon indicating copy to clipboard operation
vim-pandoc-legacy copied to clipboard

Syntax definition causes SIGV in MacVim

Open jldiaz opened this issue 12 years ago • 2 comments

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).

jldiaz avatar Jul 24 '13 23:07 jldiaz

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.

dsanson avatar Jul 30 '13 13:07 dsanson

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)?

lambdalisue avatar Jul 30 '13 15:07 lambdalisue