vis
a vi-like editor based on Plan 9's structural regular expressions
git clone https://9o.is/git/vis.git
commit 5e79ae664410dca133513280ab67c920c7b61dc4 parent a813305f1a9742bb596b103c5fbb9a4226a52116 Author: Marc André Tanner <mat@brain-dump.org> Date: Tue, 27 Sep 2016 22:46:58 +0200 visrc: move global settings to start handler There is no need to set global settings for each window. Diffstat:
| M | visrc.lua | | | 8 | ++++++-- |
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git 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