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