require("key/Rekey") -- Write all we can and exit. Created this to drop non-writable stuff when piping to nvim. function bye() pcall(vim.cmd, "wa") vim.cmd[[qa!]] end -- Repeat previous command. rekey_normal(".", "@:") rekey_visual(".", "@:") -- Save everything. rekey_normal("zz", "wa") -- Save all we can and leave. rekey_normal("z", "lua bye()") -- Compatibility alias for visual selection. rekey_normal("v", "v") -- Remap ; to :. rekey_normal(";", ":") rekey_visual(";", ":")