Package: vim-runtime
Version: 2:8.2.2434-3+deb11u1
The PHP completion script contained in vim-runtime 8.2.2434 is buggy. It's
been fixed upstream. (https://github.com/vim/vim/issues/10047)
Steps to reproduce:
1. Open ViM, exiting a PHP file: vim --clean spam.php
2. Confirm, the filetype is set: set ft? responds with ft=php
3. Start typing:
<?php
ech<C-X><X-O>
4. Observer error:
Error detected while processing function
phpcomplete#CompletePHP[131]..function
phpcomplete#CompletePHP[63]..phpcomplete#GetCurrentNameSpace:
line 30:
E565: Not allowed to change text or change window
Press ENTER or type command to continue
Expected behaviour: OmniComplete works
Proposed solution: Upgrade vim-runtime to >8.2.2508.