~adigitoleo/dotconf

b6d5c759902ddf55a97432d8b5c4068f9b0e1dc0 — adigitoleo 4 months ago 102af9d
feat: Add convenient mapping for :e! and plugin to restore cursor pos
1 files changed, 4 insertions(+), 0 deletions(-)

M .config/vis/visrc.lua
M .config/vis/visrc.lua => .config/vis/visrc.lua +4 -0
@@ 11,6 11,8 @@ require('plugins/vis-jumplist')
require('plugins/vis-cscope')
-- <https://github.com/fischerling/vis-spellcheck>
require('plugins/vis-spellcheck')
-- <https://github.com/erf/vis-cursors>
require('plugins/vis-cursors')
-- <https://repo.or.cz/vis-pairs.git>
local pairs = require('plugins/vis-pairs')
pairs.autopairs = false


@@ 96,6 98,8 @@ vis.events.subscribe(vis.events.INIT, function()
    vis:map(_normal, '<Backspace>', "''m:x/ +$/ c//<Enter>M")
    -- Ignorecase is sometimes unhelpful:
    vis:map(_normal, 'gc', ':set ignorecase!<Enter>')
    -- Reload current file from disk:
    vis:map(_normal, 'gr', ':e!<Enter>')
end)