feat(mappings): add mapping for toggling virtualedit

This commit is contained in:
2025-02-09 12:58:12 +01:00
parent 838c935f58
commit a7b150b286
+8
View File
@@ -77,6 +77,14 @@ vim.keymap.set('c', '<M-b>', '<C-Left>')
vim.keymap.set('c', '<M-d>', '<C-Right><C-w>') vim.keymap.set('c', '<M-d>', '<C-Right><C-w>')
vim.keymap.set('c', '<M-BS>', '<C-w>') vim.keymap.set('c', '<M-BS>', '<C-w>')
vim.keymap.set('n', '<leader>ve', function()
if vim.o.virtualedit == 'all' then
vim.o.virtualedit = 'block'
else
vim.o.virtualedit = 'all'
end
end)
-- Default bindings that are good to know: -- Default bindings that are good to know:
-- insert mode: -- insert mode:
-- <C-T> - indent, see :h i_CTRL-T -- <C-T> - indent, see :h i_CTRL-T