From af942f457c6ea34512b6b7f4d6033eff1e50a17d Mon Sep 17 00:00:00 2001 From: David Date: Wed, 26 Aug 2015 18:09:39 -0700 Subject: [PATCH] Create vi --- v/vi | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 v/vi diff --git a/v/vi b/v/vi new file mode 100644 index 00000000..3783715c --- /dev/null +++ b/v/vi @@ -0,0 +1,15 @@ +The following tab indented lines will cause a true vi with modelines +activated to infinitely loop puting "Hello World" in the buffer. Hit + to abort the loop and see the output. None of the vi clones +support modelines this powerful, and modelines are diabled by default. +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.