kak: add page

italian
Frank LENORMAND 2018-02-21 09:26:40 +03:00 committed by Agniva De Sarker
parent 2926835dd6
commit 8363356c7b
1 changed files with 36 additions and 0 deletions

36
pages/common/kak.md Normal file
View File

@ -0,0 +1,36 @@
# 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.
- 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:
`<Escape>`
- Replace all instances of "foo" in the current file with "bar":
`%s{{foo}}<Enter>c{{bar}}<Escape>`
- Un-select 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>`