visrc.lua (696B)
1 -- load standard vis module, providing parts of the Lua API 2 require('vis') 3 vis.events.subscribe(vis.events.INIT, function() 4 -- Your global configuration options 5 vis:command('set theme cosmic') 6 vis:command('set autoindent on') 7 vis:command('set ic on') 8 end) 9 10 vis:map(vis.modes.NORMAL, '<C-p>', '"+p') 11 vis:map(vis.modes.INSERT, '<C-p>', '<Escape>"+pa') 12 vis:map(vis.modes.VISUAL_LINE, '<C-y>', function() vis:feedkeys(':>vis-clipboard --copy<Enter>') end) 13 vis:map(vis.modes.VISUAL, '<C-y>', function() vis:feedkeys(':>vis-clipboard --copy<Enter>') end) 14 15 vis.events.subscribe(vis.events.WIN_OPEN, function(win) 16 -- Your per window configuration options e.g. 17 vis:command('set show-eof off') 18 end)