KAK(1) | General Commands Manual | KAK(1) |
kak
— a
vim-inspired, selection oriented code editor
kak |
[-d ] [-n ]
[-ro ] [-c
session_id | -s
session_id] [-ui
ui_type] [-e
command] [-E
command]
[+line[:column]
| +:] [file ...] |
kak |
-f keys
[-q ] [-i
suffix] [file ...] |
kak |
-p session_id |
kak |
-l |
kak |
-clear |
kak |
-version |
kak |
-help |
Kakoune is a code editor heavily inspired by vim(1) and vi(1). As such, most of its commands are similar to vi(1)'s, sharing its “keystrokes as a text editing language” model.
Kakoune operates in two modes, normal and insertion. In insertion mode, keys are directly inserted into the current buffer. In normal mode, keys are used to manipulate the current selection and to enter insertion mode.
Kakoune has a strong focus on interactivity. Most commands provide immediate and incremental results, while still being competitive in keystroke count with vim.
Kakoune works on selections, which are oriented, inclusive ranges of characters. Selections have an anchor and a cursor. Most commands move both of them except when extending selection, where the anchor character stays fixed and the cursor moves around.
The options are as follows:
-help
-version
-n
-l
-d
-s
).-e
command-E
command-f
keys%
) then
keys are executed. The filtered version of standard
input is written to standard output. Any files mentioned on the command
line are modified in-place, but if -i
is provided
then Kakoune makes a backup of the original version.-i
suffix-q
-p
session_id-c
session_id-s
session_id-ui
type-clear
-ro
KAKOUNE_POSIX_SHELL
KAKOUNE_CONFIG_DIR
XDG_CONFIG_HOME
XDG_RUNTIME_DIR
In the paths documented below,
<rtdir> refers to the runtime directory, whose
value is determined in relation to the path to kak
's
binary location: <rtdir> =
<path_to_kak_binary>/../share/kak.
If not started with the -n
switch,
kak
will first load
<rtdir>/kakrc, which will in turn load the
following additional files:
Consequently, if the $KAKOUNE_CONFIG_DIR/autoload directory exists, only scripts stored within that directory will be loaded — the built-in *.kak files will not be.
Users who still want the built-in scripts to be loaded along their own can create a symbolic link to <rtdir>/autoload (or to individual scripts in it) in their user-configuration directory:
ln -s <rtdir>/autoload
${XDG_CONFIG_HOME:-$HOME/.config} /kak/autoload
kak
/path/to/filekak
./file1.txt
/path/to/file2.ckak
-f
"ggO// kak:
tabstop=8<esc>" *.cFor the complete on-line documentation, use the
:doc
command after starting
kak
.
Maxime Coste <frrrwww@gmail.com> and many others.
June 15, 2021 | Debian |