mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-17 04:00:35 +00:00
Update cheatsheets
This commit is contained in:
42
kak
Normal file
42
kak
Normal file
@@ -0,0 +1,42 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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.
|
||||
> More information: <https://kakoune.org>.
|
||||
|
||||
- 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:
|
||||
|
||||
`i`
|
||||
|
||||
- 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:
|
||||
|
||||
`!cat {{path/to/file}}<Enter>`
|
||||
|
||||
- Save the current file:
|
||||
|
||||
`:w<Enter>`
|
||||
Reference in New Issue
Block a user