If a line of text is found within the first or last two or three lines
of the file which matches the mode line pattern, the mode of the
editor will be changed after the file is loaded. The pattern is one or
more text or punctuation characters, white space, the text ed:
followed by one or more option patterns separated by white space.
# ed: [[no]vw] [[no]ww] [[no]sg] [[no]hs] [cs:u] [th:l|d|b|r] [ts:l|m|s] [tf:m|p]
The initial text or punctuation characters are intended to be used to hide the mode line from compilers and interpreters by commenting it out.
The option patterns are:
- [no]vw – View files read only
- [no]ww – Word wrap
- [no]sg – Suggestions
- [no]hs – Syntax highlighting
- cs:u – Character set – UTF-8
- th:l|d|b|r – Theme – light, dark, black or retro
- ts:l|m|s – Text size – large, medium or small
- tf:m|p – Typeface – monospace or proportional
The mode line is read after the file is loaded and will change immediately, except in Android 6, Marshmallow due to an obscure bug. Rotate the device to change mode.