This repository has been archived on 2023-10-16. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles/.config/vis/plugins/vis-vim-compatible.lua

21 lines
364 B
Lua

function vimMotions()
-- make `_` move to the first non-whitespace character
vis:command('map! normal _ ^')
end
function vimCommands()
-- support :cq
vis:command_register("cq", function(argv, force, win, selection, range)
vis:command("qall")
os.exit(-1)
end)
end
function vimCompatibilityInit()
vimMotions()
vimCommands()
end
vimCompatibilityInit()