Resize windows keymaps
This commit is contained in:
parent
1babdf3dfb
commit
9e3c1f9bbb
1 changed files with 7 additions and 0 deletions
|
@ -25,6 +25,13 @@ vim.keymap.set('n', '<right>', '<cmd>echo "Use l to move!!"<CR>')
|
||||||
vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>')
|
vim.keymap.set('n', '<up>', '<cmd>echo "Use k to move!!"<CR>')
|
||||||
vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>')
|
vim.keymap.set('n', '<down>', '<cmd>echo "Use j to move!!"<CR>')
|
||||||
|
|
||||||
|
-- Resize windows
|
||||||
|
vim.keymap.set('n', '<C-S-l>', '<cmd>wincmd 15 ><CR>', { desc = 'Increase window width' })
|
||||||
|
vim.keymap.set('n', '<C-S-h>', '<cmd>wincmd 15 <<CR>', { desc = 'Decrease window width' })
|
||||||
|
vim.keymap.set('n', '<C-S-k>', '<cmd>wincmd 15 +<CR>', { desc = 'Increase window height' })
|
||||||
|
vim.keymap.set('n', '<C-S-j>', '<cmd>wincmd 15 -<CR>', { desc = 'Decrease window height' })
|
||||||
|
vim.keymap.set('n', '<C-S-0>', '<cmd>wincmd =<CR>', { desc = 'Set height/width equal' })
|
||||||
|
|
||||||
-- Keybinds to make split navigation easier.
|
-- Keybinds to make split navigation easier.
|
||||||
-- Use CTRL+<hjkl> to switch between windows
|
-- Use CTRL+<hjkl> to switch between windows
|
||||||
--
|
--
|
||||||
|
|
Loading…
Reference in a new issue