Bug 33396

Summary: Syntax errors when opening Python files in vim
Product: Mageia Reporter: Dan Fandrich <dan>
Component: RPM PackagesAssignee: Dan Fandrich <dan>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal    
Version: 9   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: vim-9.1.411-1.mga9.src.rpm CVE:
Status comment:

Description Dan Fandrich 2024-07-12 20:57:54 CEST
Description of problem:
Opening a Python file with vim produces
Error detected while processing BufRead Autocommands for "*.py"..FileType Autocommands for "*"..func
tion <SNR>4_LoadFTPlugin[18]..script /usr/share/vim/ftplugin/python.vim:
line   17:
E518: Unknown option: ]\\?def\\|class\\)
Press ENTER or type command to continue

The problem has been fixed in Cauldron in vim-9.1.411-2.mga10

Version-Release number of selected component (if applicable):
vim-9.1.411-1

How reproducible:
100%

Steps to Reproduce:
1. vim -u /usr/share/vim/defaults.vim /usr/share/vim/tools/demoserver.py
The -u option is probably not necessary but guarantees that the user's .vimrc file doesn't set an option to make the problem not show up.
Comment 1 Lewis Smith 2024-07-12 21:42:37 CEST
Dan, thank you for the report.
It looks like you currently commit vim, so you will excuse me for assigning this to you for the Mageia 9 fix.

Assignee: bugsquad => dan

Comment 2 Dan Fandrich 2024-07-12 21:47:01 CEST
I'm happy to do it, but I didn't want to overrule the registered maintainer.
Comment 3 katnatek 2024-07-13 01:27:41 CEST
tv is the registered maintainer but Nicolas send the last

Assignee: dan => nicolas.salguero

Comment 4 Nicolas Salguero 2024-07-15 14:26:13 CEST
(In reply to Dan Fandrich from comment #2)
> I'm happy to do it, but I didn't want to overrule the registered maintainer.

Hi,

From my point of view, feel free to fix that bug.

Best regards,

Nico.

Assignee: nicolas.salguero => dan