mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-01 16:44:49 +02:00
fix(keymaps): dont map jk in visual. Use x instead of v. Fixes #912
This commit is contained in:
parent
b2bceeed77
commit
d6bb907cf0
1 changed files with 2 additions and 2 deletions
|
@ -16,8 +16,8 @@ local function map(mode, lhs, rhs, opts)
|
|||
end
|
||||
|
||||
-- better up/down
|
||||
map({ "n", "v" }, "j", "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })
|
||||
map({ "n", "v" }, "k", "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })
|
||||
map({ "n", "x" }, "j", "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })
|
||||
map({ "n", "x" }, "k", "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })
|
||||
|
||||
-- Move to window using the <ctrl> hjkl keys
|
||||
map("n", "<C-h>", "<C-w>h", { desc = "Go to left window", remap = true })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue