Skip to content

Commit 904117e

Browse files
sand4rtjulianbopp
authored andcommitted
feat(keymap): move windows without <C-w> (nvim-lua#1368)
1 parent 0f63b2d commit 904117e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

init.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,11 @@ vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper win
219219

220220
-- vim.keymap.set('n', '<leader>ef', vim.cmd.Ex, { desc = 'Open Built in file explorer' })
221221
vim.keymap.set('n', '<leader>ef', '<CMD>Oil<CR>', { desc = 'Open OIL file explorer' })
222+
-- NOTE: Some terminals have coliding keymaps or are not able to send distinct keycodes
223+
-- vim.keymap.set("n", "<C-S-h>", "<C-w>H", { desc = "Move window to the left" })
224+
-- vim.keymap.set("n", "<C-S-l>", "<C-w>L", { desc = "Move window to the right" })
225+
-- vim.keymap.set("n", "<C-S-j>", "<C-w>J", { desc = "Move window to the lower" })
226+
-- vim.keymap.set("n", "<C-S-k>", "<C-w>K", { desc = "Move window to the upper" })
222227

223228
-- [[ Basic Autocommands ]]
224229
-- See `:help lua-guide-autocommands`

0 commit comments

Comments
 (0)