mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-01 16:44:49 +02:00
fix(keymaps): better j/k for visual mode (#902)
This commit is contained in:
parent
7c593dce1f
commit
e049928b8b
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", "j", "v:count == 0 ? 'gj' : 'j'", { expr = true, silent = true })
|
||||
map("n", "k", "v:count == 0 ? 'gk' : 'k'", { expr = true, silent = true })
|
||||
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 })
|
||||
|
||||
-- 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