modelines
Modelines are lines embedded in a text file that allow a text editor to apply settings automatically when the file is opened. They are most commonly associated with Vi and Vim, but variants exist in other editors. A modeline specifies options such as tab stops, indentation method, text width, encoding, line endings, and filetype.
In Vim, a modeline is a line that starts with vim: or vi:, and is recognized if
Security considerations: Modelines can execute editor commands, which creates a potential risk if the file is
Emacs and other editors offer similar per-file configuration mechanisms, such as Local Variables blocks at the
See also: Local variables, file metadata, Vim modeline security.