Setting columns in modeline does not work since 9.2.0350
Author: phileimerCreated Sep 27, 2026Updated Sep 27, 2026
Labelsbug
Steps to reproduce
Add the line: vim: tabstop=8 columns=160 at the beginning of a file.
Since vim version 9.2.0350, 'columns' is not processed while 'tabstop' is.
Works well with previous versions up to 9.2.0349.
Tested using gvim.
Expected behaviour
'columns' should be processed like other modified parameters.
Version of Vim
9.2.0350 and next
Environment
OS: Linux GUI: GTK3
Configure: echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h && echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h && ./configure --prefix=/usr --enable-gui=gtk3 --with-compiledby=phil
Logs and stack traces
Source: vim/vim