[vim/vim] ftplugin/python.vim: E518: Unknown option: ]\\?def\\|class\\) (Issue #14774)

50 views
Skip to first unread message

Linwei

unread,
May 15, 2024, 3:11:21 AM5/15/24
to vim/vim, Subscribed

Steps to reproduce

update to vim v9.1.0411:

edit reproduce.vim:

set nocompatible
filetype plugin on

start vim:

vim -u reproduce.vim

edit an arbitrary python file:

:edit foo.py

and you will see:

Error detected while processing BufNewFile Autocommands for "*.py"..FileType Autocommands for "*"..function <SNR>25_LoadFTPlugin[18]..script /usr/local/opt/share/vim/vim
91/ftplugin/python.vim:
line   17:
E518: Unknown option: ]\\?def\\|class\\)
Press ENTER or type command to continue

screen capture:

default.png (view on web)

I believe it was introduced by 86f6e2c

Expected behaviour

no exception.

Version of Vim

9.1.411

Environment

OS: Both Windows and Linux
Terminal: no matter terminal vim or gvim

Logs and stack traces

No response


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14774@github.com>

Linwei

unread,
May 15, 2024, 3:13:12 AM5/15/24
to vim/vim, Subscribed

@tpict , can you confirm this ?


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14774/2111751932@github.com>

K.Takata

unread,
May 15, 2024, 3:32:29 AM5/15/24
to vim/vim, Subscribed

Closed #14774 as completed.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issue/14774/issue_event/12812596005@github.com>

K.Takata

unread,
May 15, 2024, 3:32:32 AM5/15/24
to vim/vim, Subscribed

It has been already fixed in 7961210. Please try v9.1.0412.
Thanks.


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/14774/2111785003@github.com>

Reply all
Reply to author
Forward
0 new messages