Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
skywind3000 opened this issue May 15, 2024 · 2 comments
Closed

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

skywind3000 opened this issue May 15, 2024 · 2 comments
Labels

Comments

@skywind3000
Copy link

skywind3000 commented May 15, 2024

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:

图片

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

@skywind3000
Copy link
Author

@tpict , can you confirm this ?

@k-takata
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants