From 34acb0ba0589b94f36596fbef2c7b59f0997456f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Tue, 27 Sep 2016 22:46:58 +0200 Subject: visrc: move global settings to start handler There is no need to set global settings for each window. --- visrc.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/visrc.lua b/visrc.lua index 7dae1fe..95aa1c0 100644 --- a/visrc.lua +++ b/visrc.lua @@ -1,11 +1,15 @@ -- load standard vis module, providing parts of the Lua API require('vis') +vis.events.start = function() + -- Your global configuration options e.g. + -- vis:command('map! normal j gj') +end + vis.events.win_open = function(win) -- enable syntax highlighting for known file types vis.filetype_detect(win) - -- Your local configuration options e.g. + -- Your per window configuration options e.g. -- vis:command('set number') - -- vis:command('map! normal j gj') end -- cgit v1.2.3