kak

kak

TLDR

Open a file and enter normal mode, to execute commands

$ kak [path/to/file]
copy

Enter insert mode from normal mode, to write text into the file

$ i
copy

Escape insert mode, to go back to normal mode

$ <Escape>
copy

Replace all instances of "foo" in the current file with "bar"

$ %s[foo]<Enter>c[bar]<Escape>
copy

Un-select all secondary selections, and keep only the main one

$ <Space>
copy

Search for numbers and select the first two

$ /\d+<Enter>N
copy

Insert the contents of a file

$ !cat [path/to/file]<Enter>
copy

Save the current file

$ :w<Enter>
copy

Copied to clipboard
free 100$ digital ocean credit