跳到主要内容

Vi mode

Rio implements the Vi mode feature originally from Alacritty.

By default you can launch Vi mode by using alt + shift + space.

Demo Vi mode

Below you can see the list of all default key bindings related to Vi mode. If you don't like of any specified key binding you can always turn off or modify (check key bindings documentation section for more information).

TriggerActionCondition
alt + shift + spaceToggle Vi ModeNo restriction
iToggle Vi ModeVi mode is activated
control + cToggle Vi ModeVi mode is activated
yCopy or ClearSelectionVi mode is activated
vStart normal selectionVi mode is activated
v + shiftStart line selectionVi mode is activated
v + controlStart block selectionVi mode is activated
v + altStart semantic selectionVi mode is activated
zCenter around Vi cursorVi mode is activated
y + controlScroll up 1 lineVi mode is activated
e + controlScroll down 1 lineVi mode is activated
b + controlScroll page upVi mode is activated
u + controlScroll half page upVi mode is activated
d + controlScroll half page downVi mode is activated
e + controlScroll down 1 lineVi mode is activated
kMove cursor upVi mode is activated
jMove cursor downVi mode is activated
hMove cursor leftVi mode is activated
lMove cursor rightVi mode is activated
Arrow upMove cursor upVi mode is activated
Arrow downMove cursor downVi mode is activated
Arrow leftMove cursor leftVi mode is activated
Arrow rightMove cursor rightVi mode is activated
0Move firstVi mode is activated
4 + shiftMove lastVi mode is activated
6 + shiftMove first occupiedVi mode is activated
h + shiftMove highVi mode is activated
m + shiftMove middleVi mode is activated
l + shiftMove lowVi mode is activated
bMove semantic leftVi mode is activated
wMove semantic rightVi mode is activated
eMove semantic right endVi mode is activated
b + shiftMove word leftVi mode is activated
w + shiftMove word rightVi mode is activated
e + shiftMove word right endVi mode is activated
5Move by bracket ruleVi mode is activated