-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Closed
Labels
A-keymapArea: Keymap and keybindingsArea: Keymap and keybindingsC-enhancementCategory: ImprovementsCategory: Improvements
Description
I'm a long time emacs user and I'm used to split window with C-x 3
(vertical) and C-x 2
(horizontal).
Right now this config doesn't work:
"C-x" = { "3" = "vsplit", "2" = "hsplit", "0" = "wclose" }
this is my setup for neovim:
local map = function(mode, key, cmd, opts)
vim.api.nvim_set_keymap(mode, key, cmd, opts or { noremap = true, silent = true })
end
map('n', '<C-x>0', '<C-w>q')
map('n', '<C-x>2', '<C-w>s')
map('n', '<C-x>3', '<C-w>v')
I know numbers are reserved for movements but being inspired by vim, I can't see why helix shouldn't be able to do the same.
tmke8, abiriadev and robertwahler
Metadata
Metadata
Assignees
Labels
A-keymapArea: Keymap and keybindingsArea: Keymap and keybindingsC-enhancementCategory: ImprovementsCategory: Improvements