keymaps to change windows and tabs with hjkl
This commit is contained in:
parent
eefa3b6087
commit
89ba490991
@ -3,11 +3,17 @@ local opts = { noremap = true, silent = true }
|
|||||||
-- Tabs
|
-- Tabs
|
||||||
vim.keymap.set('n', '<S-Right>', ':tabnext<CR>', opts)
|
vim.keymap.set('n', '<S-Right>', ':tabnext<CR>', opts)
|
||||||
vim.keymap.set('n', '<S-Left>', ':tabprevious<CR>', opts)
|
vim.keymap.set('n', '<S-Left>', ':tabprevious<CR>', opts)
|
||||||
|
vim.keymap.set('n', '<S-l>', ':tabnext<CR>', opts)
|
||||||
|
vim.keymap.set('n', '<S-h>', ':tabprevious<CR>', opts)
|
||||||
-- Split movement
|
-- Split movement
|
||||||
vim.keymap.set('n', '<A-Up>', ':wincmd k<CR>', opts)
|
vim.keymap.set('n', '<A-Up>', ':wincmd k<CR>', opts)
|
||||||
vim.keymap.set('n', '<A-Down>', ':wincmd j<CR>', opts)
|
vim.keymap.set('n', '<A-Down>', ':wincmd j<CR>', opts)
|
||||||
vim.keymap.set('n', '<A-Left>', ':wincmd h<CR>', opts)
|
vim.keymap.set('n', '<A-Left>', ':wincmd h<CR>', opts)
|
||||||
vim.keymap.set('n', '<A-Right>', ':wincmd l<CR>', opts)
|
vim.keymap.set('n', '<A-Right>', ':wincmd l<CR>', opts)
|
||||||
|
vim.keymap.set('n', '<A-k>', ':wincmd k<CR>', opts)
|
||||||
|
vim.keymap.set('n', '<A-j>', ':wincmd j<CR>', opts)
|
||||||
|
vim.keymap.set('n', '<A-h>', ':wincmd h<CR>', opts)
|
||||||
|
vim.keymap.set('n', '<A-l>', ':wincmd l<CR>', opts)
|
||||||
|
|
||||||
vim.keymap.set('n', '<C-S>', ':wa | wshada<CR>')
|
vim.keymap.set('n', '<C-S>', ':wa | wshada<CR>')
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user