41 lines
1.1 KiB
Lua
41 lines
1.1 KiB
Lua
require("vis")
|
|
require("plugins/vis-ctags")
|
|
require("plugins/vis-sneak")
|
|
|
|
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: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')
|
|
|
|
vis:map(vis.modes.NORMAL, ' m', function()
|
|
vis:command("!make; read a")
|
|
end)
|
|
vis:map(vis.modes.NORMAL, ' c', function()
|
|
vis:command("!make check; read a")
|
|
end)
|
|
vis:map(vis.modes.NORMAL, ' t', function()
|
|
vis:command("!make test; read a")
|
|
end)
|
|
end)
|
|
|
|
vis.events.subscribe(vis.events.WIN_OPEN, function(win)
|
|
win.options.tabwidth = 2
|
|
win.options.expandtab = true
|
|
-- win.options.wrapcolumn = 80
|
|
end)
|