diff --git a/lua/custom/maps/init.lua b/lua/custom/maps/init.lua index 4b68acc..072e462 100644 --- a/lua/custom/maps/init.lua +++ b/lua/custom/maps/init.lua @@ -105,6 +105,15 @@ vim.keymap.set({ 'v' }, 'p', 'p', { desc = '[p]aste to selected and copy to regi vim.keymap.set({ 'n', 'v' }, 'OO', 'O', { desc = 'Insert a line above' }) vim.keymap.set({ 'n', 'v' }, 'oo', 'o', { desc = 'Insert a line below' }) +-- add lines from normal and visual, with insert mode +vim.keymap.set({ 'n', 'v' }, 'O', 'O', { desc = 'Insert a line above and insert' }) +vim.keymap.set({ 'n', 'v' }, 'o', 'o', { desc = 'Insert a line below and insert' }) +vim.keymap.set({ 'n', 'v' }, 'Oi', 'O', { desc = 'Insert a line above and insert' }) +vim.keymap.set({ 'n', 'v' }, 'oi', 'o', { desc = 'Insert a line below and insert' }) + +-- make current line a blank line and insert +vim.keymap.set({ 'n', 'v' }, 'do', 'Vc', { desc = '[D]o [O]ver / Rewrite line' }) + -- substitute, normally on 's', but the leap plugin is more useful on 's' vim.keymap.set({ 'n' }, 's', 's', { desc = '[S]ubstitute hovered text' })