This commit is contained in:
2026-02-25 16:39:43 +02:00
parent e65a7f3f13
commit 713af0f937
5 changed files with 47 additions and 1 deletions

View File

@@ -22,6 +22,15 @@ vim.keymap.set('x', 'K', ":m '<-2<CR>gv=gv")
vim.keymap.set('n', '<leader>s', [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/g<Left><Left><Left>]])
-- Scroll
-- vim.keymap.set('n', '<C-d>', function()
-- vim.cmd('normal! ' .. math.floor(vim.api.nvim_win_get_height(0) * 0.25) .. 'j')
-- end)
--
-- vim.keymap.set('n', '<C-u>', function()
-- vim.cmd('normal! ' .. math.floor(vim.api.nvim_win_get_height(0) * 0.25) .. 'k')
-- end)
-- Easy to use registers
map('x', '<leader>p', '"_dP')
map({ 'n', 'x' }, '<leader>y', '"+y')
@@ -38,6 +47,7 @@ map('n', '<C-k>', '<C-w>k')
-- Tab management
map('n', ']t', cmd('tabnext'))
map('n', '[t', cmd('tabprevious'))
map('n', '<leader>t', '<nop>')
map('n', '<leader>tt', cmd('tabnew'))
map('n', '<leader>tn', cmd('tabnew'))
map('n', '<leader>tc', cmd('tabclose'))