commit ef0f21c6ea224ce56bb6b18f8a756973731d5c4c
parent 2817aa3ba9c6109447339bcec43a174fad5cd584
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 25 Jun 2019 09:30:02 +0200
Add bindings to add newline above or below
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/.config/vis/visrc.lua b/.config/vis/visrc.lua
@@ -95,6 +95,10 @@ vis.events.subscribe(vis.events.INIT, function()
vis:map(vis.modes.NORMAL, '<Tab><Tab>', '<vis-window-next>')
vis:map(vis.modes.NORMAL, leader..'<Tab>', ':prev<Enter>')
vis:map(vis.modes.NORMAL, leader..',', ':fzfmru<Enter>')
+ vis:map(vis.modes.NORMAL, '] ',
+ function() vis:feedkeys('o<Escape><Up>') end)
+ vis:map(vis.modes.NORMAL, '[ ',
+ function() vis:feedkeys('O<Escape><Down>') end)
end)
vis.events.subscribe(vis.events.WIN_OPEN, function(win)