vis

a vi-like editor based on Plan 9's structural regular expressions

git clone https://9o.is/git/vis.git

commit ab88ccc18d6ec4c8566ff93b677b02b48ba8924e
parent ec40bf6338b7422ea106ad92f5d0e6946ce67127
Author: Marc André Tanner <mat@brain-dump.org>
Date:   Wed, 15 Feb 2017 21:43:04 +0100

test/vis: source the default visrc.lua file

This loads the default plugins whose functionality can now
also be tested.

Diffstat:
Mvis/visrc.lua | 7++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/vis/visrc.lua b/vis/visrc.lua @@ -1,5 +1,6 @@ -vis.events = {} -vis.events.win_open = function(win) +dofile("../../lua/visrc.lua") + +vis.events.subscribe(vis.events.WIN_OPEN, function(win) -- test.in file passed to vis local name = win.file.name if name then @@ -14,4 +15,4 @@ vis.events.win_open = function(win) vis:command(string.format("w! '%s.out'", name)) vis:command('qall!') end -end +end)