This commit is contained in:
kento2 2026-02-10 14:07:09 +01:00
parent c373245cbc
commit 55686316aa
5 changed files with 17 additions and 1 deletions

View file

@ -3,6 +3,15 @@ require("vis")
vis.events.subscribe(vis.events.INIT, function()
vis:command("set theme kento2")
vis.options.autoindent = true
vis.options.breakat = " "
vis:map(vis.modes.NORMAL, 'h', 'gh')
vis:map(vis.modes.NORMAL, 'j', 'gj')
vis:map(vis.modes.NORMAL, 'k', 'gk')
vis:map(vis.modes.NORMAL, 'l', 'gl')
vis:map(vis.modes.NORMAL, '0', 'g0')
vis:command("map! normal n <vis-motion-search-repeat>")
vis:map(vis.modes.VISUAL, ' y', '"+y')
vis:map(vis.modes.VISUAL, ' p', '"+p')
@ -13,3 +22,8 @@ vis.events.subscribe(vis.events.INIT, function()
vis:map(vis.modes.NORMAL, ' d', '"+d')
vis:map(vis.modes.NORMAL, ' x', '"+x')
end)
vis.events.subscribe(vis.events.WIN_OPEN, function(win)
win.options.tabwidth = 3
win.options.wrapcolumn = 80
end)