Skip to main content

Module modeline

Module modeline 

Source
Expand description

Vim modeline finder.

Extracts vim modelines such as vim: set ts=4 sw=4 et:, vi: ts=4 sw=4, or version-gated forms like vim700: / vim<702: / vim=703: / vim>702:. Supports the vim, vi, and ex prefixes and both the bare (first) and set (second) modeline forms. The bare form must contain at least one option=value assignment so prose such as “I prefer vim: it is great” is not misread as a modeline.

Structs§

Modeline