vim plugin for M2

69 views
Skip to first unread message

Manoj Kummini

unread,
Aug 30, 2023, 12:53:37 AM8/30/23
to Macaulay2
This is for the users of the vim plugin for M2.

After the recent upgrade from Debian 11 to Debian 12 (bookworm), I began getting an error saying something like

Error detected while processing BufNewFile Autocommands for "*.m2"..FileType Autocommands for "*"..function <SNR>10_LoadFTPlugin[18]..script /home/mkummini/.vim
/ftplugin/Macaulay2.vim

After this upgrade vim version is 9.0.1499.

After exploring further using the ":messages" command in vim, I got lines like:  

line   22:
E1208: -complete used without allowing arguments

The way to get around this is to delete the phrase "-complete=shellcmd" in the definitions of M2Start, etc.; specifically, for which "-nargs=0" is specified. That E1208 would be raised is mentioned in the help page of "-complete" (i.e., if one does :h -complete) for this version of vim (but not an earlier version of vim that I have access to). As far as I could see, everything seems to work properly after deleting the "-complete" phrase.

Manoj.

Mahrud Sayrafi

unread,
Sep 9, 2023, 3:52:37 PM9/9/23
to maca...@googlegroups.com
It would be very helpful if you could submit a pull request to update the vim plugin currently distributed with M2 here:


--
You received this message because you are subscribed to the Google Groups "Macaulay2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to macaulay2+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/macaulay2/dc240615-97fb-4e3e-9384-0ba83ce05432n%40googlegroups.com.

Manoj Kummini

unread,
Sep 13, 2023, 7:36:39 PM9/13/23
to Macaulay2
I have created a pull request
(It gave one error: autobuild-macos-12-default did not succeed.)

Manoj.
Reply all
Reply to author
Forward
0 new messages