summaryrefslogtreecommitdiff
path: root/VIMTOKAK
blob: 0379f4876dc8a576df15af28dcfc93d74e229433 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
Vi(m) to Kakoune:
=================

Most operations in Kakoune are reversed compared to Vim: In kak, you first
select the text you want to act on, then you edit it. This way, things are
much more consistent, as for example, kak does not need a key for delete
character, the delete key handles this just fine as long as you did not
select more than a character (but clearing selection is only one space away).

delete a word:
 * vim: dw
 * kak: wd

delete a character:
 * vim: x
 * kak: d or <space>d

copy a line:
 * vim: yy
 * kak: xy

global replace:
 * vim: :%s/word/replacement
 * kak: %sword<ret>creplacement

join line with next:
 * vim: J
 * kak: alt-J

delete to line end:
 * vim: d$
 * kak: alt-ld or gld