blob: f518a2dbf7e0a70cd4d3b871a4f6db257f6223fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
-- load standard vis module, providing parts of the Lua API, sets _G.vis
require('plugins')
require('vis')
local leader = ' '
vis:map(vis.modes.NORMAL, ' ', '')
vis:map(vis.modes.VISUAL,leader.."y", '"+y"')
-- global configuration options
vis.events.subscribe(vis.events.INIT, function()
vis:command("set theme caelus")
end)
-- per-window configuration options
vis.events.subscribe(vis.events.WIN_OPEN, function(win)
vis:command("set tabwidth 4")
vis:command("set relativenumbers true")
vis:command("set autoindent true")
vis:command("set expandtab true")
vis:command("set ignorecase true")
vis:map(vis.modes.NORMAL, leader.."pv", function()
vis:command("open .")
vis:feedkeys("<C-w>k")
vis:command("wq!")
end, "")
end)
|