-- -- Global custom plugin agnostic keymaps -- .............................................. -- -- Author: Sven Vogel -- Created: 01.11.2024 -- Edited: 01.11.2024 -- -- ============================================== local keymaps = { -- -- Write buffer to disk -- .............................................. { mode = { 'n', 'i' }, keys = '', cmd = vim.cmd.write, desc = "Write buffer to disk" }, { mode = { 'n', 'i' }, keys = '', cmd = vim.cmd.undo, desc = "Undo last edit" }, { mode = { 'n', 'i' }, keys = '', cmd = vim.cmd.redo, desc = "Redo last edit that was undone" }, -- -- Shift line(s) by one shiftwidth -- .............................................. { mode = { 'n', 'i' }, keys = '', cmd = ':<', desc = "Shift cursor line left" }, { mode = { 'n', 'i' }, keys = '', cmd = ':>', desc = "Shift cursor line right" }, { mode = { 'v' }, keys = '', cmd = '>gv', desc = "Shift selection in visual mode right" }, { mode = { 'v' }, keys = '', cmd = '