require('vis') vis.events.subscribe(vis.events.INIT, function() -- Global configuration options end) vis.events.subscribe(vis.events.WIN_OPEN, function(win) -- Per window configuration options vis:command('set autoindent on'); end)