Docs / Getting Started / Vi Mode

🔗Vi Mode

Boxxy includes a built-in Vi copy mode for navigating scrollback, selecting text, searching output, opening links, and handing context to =BoxxyClaw= — all without leaving the keyboard.

Press Ctrl+Shift+Space (or run Toggle Vi Mode from the Command Palette Ctrl+Shift+P) to enter Vi Mode. Your cursor switches to a solid block and a subtle mode pill appears in the corner of the pane (VI NORMAL, VI VISUAL, VI LINE, or VI BLOCK), along with any pending count or operator prefix (such as VI NORMAL · 12).

Tip: You can rebind Toggle Vi Mode anytime in =Preferences= (Ctrl+,) → =Shortcuts= or in ~/.config/boxxy-terminal/keybindings.toml. Vi Mode also automatically maps physical key positions so motions work seamlessly across non-Latin keyboard layouts.


🔗Entering & Exiting

KeyAction
Ctrl+Shift+SpaceToggle Vi Mode on or off
EscUnwind one layer: cancel pending count/prefix → clear visual selection → exit Vi Mode
q, i, or Ctrl+CExit Vi Mode immediately

🔗Motions & Counts

Prefix any repeatable motion with a number (e.g. 10j, 5w, 3[[, 2fa) to repeat it up to 9999 times.

KeyAction
h / j / k / lMove left / down / up / right (Arrow keys, BackSpace, and Space also work)
w / b / e / geNext / previous / end / previous-end word
W / B / E / gENext / previous / end / previous-end whitespace-delimited WORD
0 (or Home)Start of line
^ / _First non-whitespace character on line
$ (or End)End of line
f<c> / F<c>Jump forward / backward onto character <c> on the current line
t<c> / T<c>Jump forward / backward till (just before) character <c>
; / ,Repeat the last f/F/t/T search in the same / opposite direction
%Jump to matching bracket
{ / }Jump to previous / next paragraph

🔗Scrolling, Viewport & Prompts

KeyAction
H / M / LMove cursor to top / middle / bottom of the visible viewport
gg / GJump to top / bottom of scrollback (or [count]gg / [count]G to jump to a line)
Ctrl+d / Ctrl+uScroll down / up half a page
Ctrl+f / Ctrl+bScroll down / up a full page (PageDown / PageUp also work)
Ctrl+e / Ctrl+yScroll viewport down / up one line
zz / zt / zbAlign cursor line to center / top / bottom of the viewport
[[ / ]]Jump to previous / next shell prompt (uses OSC 133 semantic markers)

🔗Visual Selection & Yanking

KeyAction
vToggle character-wise visual selection (VI VISUAL)
VToggle line-wise visual selection (VI LINE)
Ctrl+vToggle rectangular block visual selection (VI BLOCK)
o / OSwap cursor to the opposite anchor end of the selection
yYank active selection to the clipboard and exit Vi Mode
yy / YYank the current line to the clipboard and exit Vi Mode

Vi Mode integrates directly with Boxxy's terminal search, hyperlink detection, and =BoxxyClaw=:

KeyAction
/ / ?Open the terminal search bar searching forward / backward
n / NJump to the next / previous search match
* / #Search forward / backward for the word under the cursor
Enter / gxOpen the OSC 8 hyperlink or URL under the cursor
aSend the active selection — or the current command block if nothing is selected — straight into Ask Boxxy-Claw