I've just upgraded all my FreeBSD machines to FreeBSD 15, and one thing I've noticed is that all my modelines are being ignored, on any of my files, from scripts to html files.
I've spent ages now searching the internet and asking LLM's, to no avail, the only thing the LLM keeps mentioning is that there was a security vulnerability found in vim modeline parsing, and that a fix was issued. I can see on https://www.freshports.org/editors/vim/ that there was an update at "9.2.0272" to fix the vulnerability.
However I don't think the fix involved disabling modelines completely? So far even with a completely bare vim config the modelines still do not work.
my vimrc just has:
and my test.txt file has the following:
It is all rather simple, and I can't figure out why it is not working. Checking ":set modeline?" shows "modeline" and everything else seems to be fine. I tried with
I've spent ages now searching the internet and asking LLM's, to no avail, the only thing the LLM keeps mentioning is that there was a security vulnerability found in vim modeline parsing, and that a fix was issued. I can see on https://www.freshports.org/editors/vim/ that there was an update at "9.2.0272" to fix the vulnerability.
However I don't think the fix involved disabling modelines completely? So far even with a completely bare vim config the modelines still do not work.
my vimrc just has:
Code:
set modeline
set modelines=5
set nocompatible
and my test.txt file has the following:
Code:
#!/bin/sh
# vim: set number
This is a modeline test
# comment
$var
It is all rather simple, and I can't figure out why it is not working. Checking ":set modeline?" shows "modeline" and everything else seems to be fine. I tried with
vim -u NONE -c "set modeline" ./test.txt with the same result. Anyone seen similar with this version of vim?