2015-08-26 18:09:39 -07:00
|
|
|
The following tab indented lines will cause a true vi with modelines
|
2021-01-19 11:41:17 +01:00
|
|
|
activated to infinitely loop putting "Hello World" in the buffer. Hit
|
2015-08-26 18:09:39 -07:00
|
|
|
to abort the loop and see the output. None of the vi clones
|
2021-01-19 11:41:17 +01:00
|
|
|
support modelines this powerful, and modelines are disabled by default.
|
2015-08-26 18:09:39 -07:00
|
|
|
Set the environment variable EXINIT to "set ml" to activate modelines.
|
|
|
|
|
|
|
|
vi: $ y a :
|
|
|
|
vi: $-1y b :
|
|
|
|
vi: @b :
|
|
|
|
put a |@b
|
|
|
|
Hello World
|
|
|
|
|
|
|
|
Whitespace is largely insignificant, but these must be the last five
|
|
|
|
lines in the file to work properly. Unless it is in "vi: ... :" or
|
|
|
|
"ex: ... :" format, any preceeding text will be ignored.
|