29 lines
852 B
Lua
29 lines
852 B
Lua
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')
|
|
vis:map(vis.modes.VISUAL, ' d', '"+d')
|
|
vis:map(vis.modes.VISUAL, ' x', '"+x')
|
|
vis:map(vis.modes.NORMAL, ' y', '"+y')
|
|
vis:map(vis.modes.NORMAL, ' p', '"+p')
|
|
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)
|