add do map

This commit is contained in:
Christoph J. Scherr 2024-09-04 10:12:25 +02:00
parent b1e831826b
commit 8599cfa449
1 changed files with 2 additions and 2 deletions

View File

@ -111,8 +111,8 @@ 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' })
-- make current line a blank line
vim.keymap.set({ 'n', 'v' }, 'do', 'Vc<Esc>', { desc = '[D]o [O]ver / Rewrite line' })
-- substitute, normally on 's', but the leap plugin is more useful on 's'
vim.keymap.set({ 'n' }, '<leader>s', 's', { desc = '[S]ubstitute hovered text' })