aretext cheat sheet

aretext is a minimalist text editor with vim-compatible key bindings [user guide]

menu

:open menu
:qquit
:q!force quit
:s (or :w)save
:sq (or :wq)save and quit
:ffind and open
:rreload
:r!force reload

cursor

h (or )left
l (or )right
k (or )up
j (or )down
wnext word
bprev word
eend of word
^start of line
$end of line
{previous paragraph
}next paragraph
gggo to first line
Ggo to last line
123gggo to line 123
Ctrl+uscroll up
Ctrl+dscroll down

edit

iinsert
Escexit insert mode
aappend
Aappend at end of line
xdelete character
5xdelete 5 characters
onew line below
Jjoin lines
dddelete line
Ddelete to end of line
dawdelete a word
dt{char}delete to next {char}
cawchange (replace) a word
r{char}replace with {char}
~toggle case
uundo
Ctrl+rredo

search

/search forward
?search backward
nnext match
Nprevious match

visual mode (selection)

vstart selecting characters
Vstart selecting lines

move cursor to select text, then:

xdelete
>indent
<outdent

clipboard

yawyank (copy) a word
yyyank (copy) line
pput (paste)
"ayyyank to clipboard "a"
"apput from clipboard "a"

(to use the system clipboard, add custom menu commands.)

macros

.repeat last action
5.repeat last action 5 times
:mstart/stop recording macro
:rreplay macro