2025-03-14 21:59:59 -06:00
# kak
> Kakoune is a mode-based code editor implementing the "multiple selections" paradigm.
> Data can be selected and simultaneously edited in different locations, using multiple selections; users can also connect to the same session for collaborative editing.
2025-12-16 10:20:31 -07:00
> More information: <https://manned.org/kak>.
2025-03-14 21:59:59 -06:00
- Open a file and enter normal mode, to execute commands:
`kak {{path/to/file}}`
- Enter insert mode from normal mode, to write text into the file:
2025-03-19 19:23:44 -06:00
`<i>`
2025-03-14 21:59:59 -06:00
- Escape insert mode, to go back to normal mode:
`<Esc>`
- Replace all instances of "foo" in the current file with "bar":
`%s{{foo}}<Enter>c{{bar}}<Esc>`
- Unselect all secondary selections, and keep only the main one:
`<Space>`
- Search for numbers and select the first two:
`/\d+<Enter>N`
- Insert the contents of a file:
2025-03-19 19:23:44 -06:00
`<!>cat {{path/to/file}}<Enter>`
2025-03-14 21:59:59 -06:00
- Save the current file:
2025-03-19 19:23:44 -06:00
`<:>w<Enter>`