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 rekey_normal('.', '@:') -- Repeat command. rekey_visual('.', '@:') -- Repeat command. rekey_normal('zz', 'wa') -- Save all files. rekey_normal('z', 'lua bye()') -- Save & quit all. rekey_normal('v', 'v') -- Visual select (duplicate). -- rekey_normal('y', '"+y') -- Copy to system clipboard. rekey_normal(';', ':') -- remap ; to :. rekey_visual(';', ':') -- remap ; to :.