Changes keybinds in Neovim to use the Kakoune workflow
- Neovim 0.7+
From the Codeberg repo (recommended)
{
"kak.nvim",
url = "https://codeberg.org/mirge/kak.nvim.git",
--version = "^6", -- if you don't want breaking changes
event = "VeryLazy", -- load after other plugins, to avoid conflicts
opts = {
-- your configuration here
},
}
From the GitHub repo
{
"mirlge/kak.nvim",
--version = "^6", -- if you don't want breaking changes
event = "VeryLazy", -- load after other plugins, to avoid conflicts
opts = {
-- your configuration here
},
}
-- you don't have to pass in the table to the setup function
require("kak").setup({
-- your configuration here
})
{
full = true, -- if set to false, it disables all keybinds except Normal mode c, d, x, y
}
c
->vc
d
->vd
x
->V
y
->vy
<A-[ft]
: Extend selection backwards with the key[HJKLWBEFT]
: Extend selection with the lowercase key<A-[ai]>
: Around/inside[hjkl]
: Remove current selection[wbeft]
: Create new selection with key<A-[wbe]>
: Create new selection backwards with the key<A-j>
: Join lines<A-[hl]>
: Extend selection all the way to <motion> of the lineg[hl]
: Go all the way to <motion> of the lineg[ge]
: Go to buffer start/endg[tcb]
: <key at the same place in [HML]>g[jk]
: Go to buffer bottom/top
gg
: Go back to Normal mode first[ai]
: Append/insert (to Insert mode) on the corresponding end of the selection