Command Reference

This document lists every command in aretext.

All commands are compatible with vim keybindings, but not all vim keybindings are implemented. If you want to use a command that is not yet available, please consider contributing to the project!

Normal Mode Commands

Some commands may be prefixed with a number count to repeat the command count times. For example "5x" deletes the next five characters.

Commands that interact with the clipboard accept a clipboard page prefix of the form "[a-z], where the letter is the name of the page. If not provided, a default (unnamed) page is used.

Name Key Binding Options
cursor left left arrow
cursor right right arrow
cursor up up arrow
cursor down down arrow
cursor left h
cursor right l
cursor up k
cursor down j
cursor back backspace
cursor to next matching character in line f{char} count
cursor to prev matching character in line F{char} count
cursor till next matching character in line t{char} count
cursor till prev matching character in line T{char} count
cursor next word start w
cursor prev word start b
cursor next word end e
cursor prev paragraph {
cursor next paragraph }
cursor line start 0
cursor line start after indentation ^
cursor line end $
cursor start of first line gg
cursor start of line number {count}gg
cursor start of last line G
scroll up ctrl-u
scroll down ctrl-d
insert i
insert at start of line I
append a
append at end of line A
new line below o
new line above O
join lines J
delete next character in line x count, clipboard page
delete line dd count, clipboard page
delete previous character in line dh clipboard page
delete lines below dj clipboard page
delete lines above dk clipboard page
delete next character in line dl count, clipboard page
delete to end of line d$ clipboard page
delete to start of line d0 clipboard page
delete to start of line after indentation d^ clipboard page
delete to end of line D clipboard page
delete to start of next word dw clipboard page
delete a word daw clipboard page
delete inner word diw clipboard page
delete to next matching character in line df{char} count, clipboard page
delete to prev matching character in line dF{char} count, clipboard page
delete till next matching character in line dt{char} count, clipboard page
delete till prev matching character in line dT{char} count, clipboard page
change to start of next word cw clipboard page
change a word caw clipboard page
change inner word ciw clipboard page
change to next matching character in line cf{char} count, clipboard page
change to prev matching character in line cF{char} count, clipboard page
change till next matching character in line ct{char} count, clipboard page
change till prev matching character in line cT{char} count, clipboard page
replace character r
toggle case ~
indent line >>
outdent line <<
yank to start of next word yw clipboard page
yank a word yaw clipboard page
yank inner word yiw clipboard page
yank line yy clipboard page
put after cursor p clipboard page
put before cursor P clipboard page
show command menu :
start forward search /
start backward search ?
find next match n
find previous match N
undo u
redo ctrl-r
visual mode charwise v
visual mode linewise V
repeat last action .

Visual Mode Commands

Name Key Binding Options
toggle visual mode charwise v
toggle visual mode linewise V
return to normal mode escape
show command menu :
delete selection x clipboard page
delete selection d clipboard page
change selection c clipboard page
toggle case for selection ~
indent selection >
outdent selection <
yank selection y clipboard page
Name Aliases
quit q
force quit q!
save document s, w
save document and quit sq, wq
force save document s!, w!
force save document and quit sq!, wq!
force reload r!
find and open f
open previous document p
open next document n
toggle show tabs ta
toggle tab expand te
toggle line numbers nu
toggle auto-indent ai
start/stop recording macro m
replay macro r
set syntax plaintext
set syntax json
set syntax yaml
set syntax go
set syntax python
set syntax rust
set syntax c
set syntax gitcommit
set syntax gitrebase