Vimma

Modes and moving

Vimma's keys depend on the mode, as in Vim. Most of the time you are in normal mode, where letters are commands: j scrolls, f shows link hints. Click into a text field and you are in insert mode, where letters type. The badge at the left of the status bar always says which mode you are in, and Esc takes you back to normal. Below the modes: moving around a page, following links, finding and copying text, and the : line.

The modes at a glance

BadgeWhen you are in itHow to get back to normal
NORMALOn every page, by default. Letters are Vimma's commands; the page does not see them.You are there.
INSERTWhile a text field has focus, or after i. Keys type into the page.Esc
HINTAfter f or gF: labels on everything you can click.Type a label, or Esc
ELEMENTAfter F and a label: a block of text is outlined, ready to copy (Copy a paragraph).y copies and leaves, or Esc
VISUALCopy mode, after v: a caret and a selection (Copy text).y copies and leaves, or Esc
COMMANDWhile you type a : command or a / search, at the bottom of the window.Enter runs it, Esc cancels
HELPWhile the ctrl+b ? key list or ctrl+b g tab search is open.Esc (or q in the key list)
RESIZEAfter ctrl+b r, to resize panes.Esc

Two kinds of keys

  • Bare keys (j, f, /) depend on the mode. In normal mode they are Vimma's; in insert mode they type.
  • ctrl+b keys work in every mode, even while you type in a field or the URL bar, because ctrl+b never types anything. Press ctrl+b, let go, then press the next key. The status bar shows prefix while it waits; Esc cancels.

Who gets a key. In normal mode a page never sees Vimma's bare keys (j, f, /); keys Vimma does not bind, such as a site's own s or m, still reach it. Firefox's shortcuts that a page may use, such as ctrl+s in an editor, and Esc in normal mode, go to the page first, as in Firefox, unless the site's Override keyboard shortcuts permission is Block. Firefox's reserved keys, such as ctrl+t, ctrl+shift+w and ctrl+q, stay the browser's: no page gets them first.

Typing in a page

  • Click a text field, pick it with f, or press i to go back to the one you were last in on the page, or the first (gi: the first one you can see; 3gi: the third). You are in insert mode.
  • Esc leaves the field and puts you back in normal mode. The page does not see that Esc. If the site needed it, to close a pop-up of its own for instance, press Esc once more.
  • On a page with its own keyboard controls, such as a game, i lets every key through to the page until you press Esc.
  • While you type, Vim's editing keys work: ctrl+w deletes a word, ctrl+u the line before the caret, ctrl+h a character. They work in the URL bar and the : line too.
  • I jumps to the URL bar from normal mode, its address selected, ready to type over. Esc brings you back to the page.

Move around a page

In normal mode you move with single keys: no mouse, no modifiers. They work on web pages, about: pages and in the PDF viewer. Every key is in All the keys for this page.

Scroll

ToPress
Scroll down / up, left / rightj k, h l
Half a page down / upd or u
Top / bottom of the pagegg or G

A number before a key repeats it: 5j scrolls five steps.

  1. Press f. A label, one or two letters, appears on every link, button and field you can see.
  2. Type a label's letters. A link is followed, a button pressed, a text field focused.

gF does the same for links only, and opens the one you pick in a new background tab, so you can pick several in turn. While labels show, Backspace undoes a letter and Esc cancels. Things you cannot see (off screen, or under a cookie banner) get no label: scroll first.

Find text

  1. Press / and type. Matches light up as you type, and the status bar counts them.
  2. Press Enter to stay on the match, or Esc to go back to where you were.
  3. n and N go to the next and the previous match.

A search typed in lower case ignores case; a single capital letter makes the whole search case-sensitive. ? searches backwards.

Back, forward, reload, addresses

ToPress
Back / forwardH or L (Firefox's alt+left / alt+right work too, cmd+left / cmd+right on macOS)
Reloadr
Copy this page's addressyy
Open the address (or search the text) on the clipboard, here / in a new tabp or P

Copy text

Copy mode selects and copies text from a page with Vim's motions.

  1. Press v. A caret appears at the first text you can see, and the badge says VISUAL.
  2. Move the caret to where your text starts: j and k by line, w and b by word, or f and a character to jump to it on the line.
  3. Press v to start the selection (V for whole lines), then move to extend it.
  4. Press y. The text is on the clipboard, and you are back in normal mode.

Esc leaves without copying. Selecting with the mouse works too: drag or double-click, then press y to copy, or use the motions to extend the selection. Text inside a text field is not reachable from copy mode: click the field and select there as usual.

Copy a paragraph

For a whole paragraph, heading, list item or code block, press F: a label appears on each block of text you can see. Type one, and the block is outlined (the badge says ELEMENT). y copies its text, v selects it in copy mode so you can adjust the selection first, and j / k move to the next or previous block. Esc leaves.

The command line

: opens a Vim-style command line at the bottom of the window. Type a command, press Enter to run it or Esc to cancel. Tab completes, and Up brings back what you ran before. Some to start with:

CommandWhat it does
:open example.comOpens the address in this tab; other words are a web search.
:tabnew example.comThe same, in a new tab.
:qCloses the pane, or the tab when there is one pane.
:workspace workSwitches to the workspace called work.
:helpLists every key, as ctrl+b ? does.

The full list is under Details. Any action on the keys page runs by its name too, such as :scroll_down.

If keys seem to do nothing

  1. Look at the badge. INSERT means a text field has focus: press Esc.
  2. Settings (about:preferences) focuses its search box when it opens, so it starts in insert mode: press Esc before j or k.
  3. Extension pages, data: and blob: pages have no Vim keys: Vimma does not reach them. ctrl+b keys and chords such as ctrl+t still work there. More in Known limits.

All the keys for this page

The default bindings, as Vimma's own ctrl+b ? overlay lists them. Name is the action's name, which you use to remap it or to run it as a : command. Every key is on the keys page.

Modes (5)

ActionKeysName
Back to normal modeescinsertescvisualescelementnormal_mode
Insert mode: focus the last-used inputiinsert_mode
Copy mode (caret browsing + selection)ctrl+b [vcopy_mode
Command line:command_line
Close the command lineesccommandcommand_cancel

Navigation (22)

ActionKeysName
Tab search: every tab, every window, recently closedctrl+b gctrl+shift+abgoto_picker
Open / close the side panelctrl+b btoggle_sidebar
Show / hide the toolbar (URL bar and add-on buttons)ctrl+b utoggle_toolbar
Show the toolbarno default keyshow_toolbar
Hide the toolbar (the address bar shows when focused)no default keyhide_toolbar
Scroll downjctrl+escroll_down
Scroll upkctrl+yscroll_up
Scroll lefthscroll_left
Scroll rightlscroll_right
Scroll half a page downdctrl+dscroll_half_down
Scroll half a page upuctrl+uscroll_half_up
Scroll to topggscroll_top
Scroll to bottomGscroll_bottom
Scroll keys: next scroll area (a count: the Nth)gsscroll_area_next
Scroll keys: previous scroll areagSscroll_area_prev
Go backalt+leftHctrl+octrl+[history_back
Go forwardalt+rightLctrl+ictrl+]history_forward
Reload pagef5ctrl+rrRpdfreload
Open a URL or search in this tabno default keyopen_url
Go up a level in the URL pathguurl_up
Go to the site's rootgUurl_root
Focus the address bar, its text selectedctrl+lalt+dIIvisualIpanelfocus_urlbar

Page (7)

ActionKeysName
Copy the page's URLyyYpdfyank_url
Open the clipboard's URL or search in this tabpopen_clipboard
Open the clipboard's URL or search in a new tabPopen_clipboard_tab
Focus the first text field (with a count: the Nth)gifocus_input
View the page's source in a new tabgfview_source
Next suggestion in an open listctrl+ninsertctrl+jinsertsuggestion_next
Previous suggestion in an open listctrl+pinsertctrl+kinsertsuggestion_prev

Hints (9)

ActionKeysName
Follow linkffollow_link
Follow link in new tabgFfollow_link_new_tab
Follow link in new tab and switch to itno default keyfollow_link_new_tab_fg
Focus a text block: v selects it, y copies itFFelementfocus_element
Show a link's target without following itno default keyshow_link_target
Copy a link's targetcpdfcopy_link_target
Hover an element: show what the page shows under the mouseghhover_element
End the hoverno default keyhover_release
Leave hint modeeschinthint_cancel

Element focus (7)

ActionKeysName
Select the focused block in copy modevelementelement_visual
Select the focused block's lines in copy modeVelementelement_visual_line
Copy the focused block's textyelementelement_yank
Focus the block around this one+elementelement_parent
Focus back down, or the first block inside-elementelement_child
Focus the next blockjelementelement_next
Focus the previous blockkelementelement_prev

Find (8)

ActionKeysName
Search in pagectrl+f/find_forward
Search backwards in page?find_backward
Next matchctrl+gf3nfind_next
Previous matchctrl+shift+gshift+f3Nfind_previous
Live grep: search the text of the workspace's tabsctrl+b f glive_grep
Next result of the last live grep]qgrep_next
Previous result of the last live grep[qgrep_previous
Live grep again with the last query (:grep)no default keygrep_resume

Copy mode (33)

ActionKeysName
Move caret lefthvisualcaret_left
Move caret downjvisualcaret_down
Move caret upkvisualcaret_up
Move caret rightlvisualcaret_right
Move caret a word forwardwvisualcaret_word_forward
Move caret a word backbvisualcaret_word_backward
Move caret to the start of the line0visualcaret_line_start
Move caret to the end of the line$visualcaret_line_end
Move caret to the top of the pageggvisualcaret_top
Move caret to the bottom of the pageGvisualcaret_bottom
Move caret to the end of the wordevisualcaret_word_end
Move caret to the previous word's endgevisualcaret_prev_word_end
Move caret to the next WORD (by spaces)Wvisualcaret_bigword_next
Move caret to the WORD's startBvisualcaret_bigword_back
Move caret to the end of the WORDEvisualcaret_bigword_end
Move caret to the line's first non-blank^visualcaret_first_char
Move caret to the paragraph's start{visualcaret_para_back
Move caret to the paragraph's end}visualcaret_para_next
Find a character forward on the linefvisualcaret_find_forward
Find a character backward on the lineFvisualcaret_find_backward
Till a character forward on the linetvisualcaret_till_forward
Till a character backward on the lineTvisualcaret_till_backward
Repeat the last f, F, t or T;visualcaret_find_repeat
Repeat the last find, reversed,visualcaret_find_reverse
Start or drop a selection at the caretvvisualtoggle_selection
Start or drop a line-wise selectionVvisualline_selection
Swap the selection's endsovisualswap_selection_ends
Select the word at the caretiwvisualselect_inner_word
Select the word at the caret and its spacesawvisualselect_a_word
Select the text block at the caretipvisualselect_inner_block
Select the block at the caret; again: its parentapvisualselect_a_block
Copy selection and leave copy modeyvisualyank_selection
Copy the selection's whole lines and leaveYvisualyank_lines

Details

Everything below is Vimma's own user guide for this topic, in full: every edge case and exception. You do not need it to get started.

The two layers

Vimma splits the keyboard into two layers, as your editor and terminal already do: Vim's modes for the page, tmux's prefix for the window. One dispatcher sees every key before Firefox does, in the address bar, on about: pages and in the PDF viewer too, so the keys behave the same everywhere.

  • The prefix layer (tmux). ctrl+b is the prefix, like tmux's default prefix. The next key is a command: ctrl+b ? shows the bindings, ctrl+b c opens a tab, ctrl+b v splits the pane, and so on. The prefix works in every mode and waits for the next key with no timeout. Esc cancels it.
  • The modal layer (Vim). Bare keys act on the page depending on the mode: j/k scroll in normal mode, while in insert mode (focus in a text field) keys go to the page. visual is copy mode (caret and selection), hint is link hints, element is element focus (F), help the bindings overlay and command the : line, resize is resize mode for panes (ctrl+b r), panel the side panel (ctrl+b b) and index the PDF viewer's outline (Tab).

Normal and insert mode

Every tab starts in normal mode: Vimma's bare keys (the table below) act on the page, and the page never sees them. This is where you read, scroll and jump. Keys Vimma has no binding for, such as z or a site's own s or m, still reach the page.

Focusing a text field puts the tab in insert mode, so typing works as in Firefox: inputs, text areas, editable regions (contenteditable), ARIA text boxes, code editors (Monaco, CodeMirror, Ace, ProseMirror, Quill), fields inside web components and inside frames from other sites. Focusing a checkbox, button or link does not. Esc leaves insert: it takes focus out of the field and the tab is back in normal. i enters insert explicitly: it goes back to the text field you were last in on the page, or the first text field if that one is gone, or, on a page without one (a game), lets every key through. In a field you have not been in yet, such as the search field a results page fills with your query, i, gi and a hint put the caret at the end of its text, ready to add to it or delete it; in a field you left, the caret is where you left it. Insert entered with i or gi lasts until Esc, even if the page moves focus itself (a file finder jumping to its result list, a dialog taking focus), so the keys you type keep going to the page. Insert entered by clicking or tabbing into a field follows the focus: when focus leaves the text fields, the tab is back in normal. After Esc, a page cannot put you back in insert on its own: a dialog that pulls focus back into its field leaves the tab in normal, and you return to typing with i, a click into the field or Tab.

In normal mode, Esc also takes focus off whatever Tab or a click left focused in the page, such as a link or a button, so its focus ring goes away. The page has that Esc first: a menu or dialog that closes on Esc closes, and one that handles the key itself keeps its focus.

Clicking into a page that is editable as a whole (a designMode document, such as some rich text editors' frames) also enters insert.

Each tab keeps its own mode. Settings (about:preferences) and the PDF viewer work the same way, but Settings focuses its search box when it opens, so it starts in insert: press Esc before j/k. A PDF takes your keys as soon as it opens, also when a site serves it as a download. A page's source (gf, or View Page Source) takes the same keys: scroll it, search it with /, and follow its links with f. Pages Vimma does not reach (extension pages, data: pages) stay in insert, so their keys are untouched. With focus in the address bar or the find bar, keys belong to that field; only ctrl+b sequences are Vimma's there (and, in a / search, Enter and Esc).

I goes to the address bar from normal mode, copy mode and the side and bookmarks panels, on any page Vimma's keys reach (web pages, about: pages, Settings, the PDF viewer, the start page, a frame with focus): it selects the address as ctrl+l does, and the status bar says INSERT while you type there. In a split it is the focused pane's address. An open panel closes first, and copy mode ends. Esc is then Firefox's: the first closes the suggestions list if it shows, the next (with the address unchanged) puts focus back in the page, in normal mode. In insert mode I is a capital I typed into the field, as in Vim; press Esc first.

Your own pages come first in the address bar's list. As you type, the first row searches or visits what you typed, as in Firefox. Under it, headed Vimma, come up to four of your open tabs, bookmarks and history that match, and after them, headed with the engine's name, your search engine's suggestions, so they are a few keys away. One tab or down reaches the first page, and each tab moves one row: it skips the row's "…" menu, so the first suggestion is five presses away. The menu is still there for the mouse and right-click, and shift+delete removes the selected page from your history. To have tab stop on the menu again, untick "Skip this menu when using the tab key" in that menu. When the engine has no suggestions, your pages fill the list. For Firefox's order, with the search suggestions first, tick "Show search suggestions before browsing history in address bar results" in Settings > Search.

Text fields have Vim's editing keys. In insert mode, and in the address bar, the : line, the find bar and the panels' filters, ctrl+w deletes the word before the caret, ctrl+u everything before it on the line, and ctrl+h one character, as Backspace. They are the text field's own delete commands, so ctrl+z undoes them. ctrl+j and ctrl+m are Enter, as in Vim, so your hands stay on the home row: a new line in a text area, the form sent from a one-line field, the address loaded from the address bar, the command run from the : line (everywhere above but the side panel's filters). While a suggestion list shows, ctrl+j moves down it instead (the suggestion keys, below) and ctrl+m stays Enter. The page sees a real Enter, so a chat box that sends on Enter sends. A page that handles one of these keys itself (a web terminal, an editor with its own ctrl+w) keeps it: Vimma acts only when the page left the key alone. In normal mode the keys stay Vimma's (ctrl+u scrolls, ctrl+w h moves between panes, ctrl+m mutes the tab, ctrl+j is the web search). A [modal.insert] binding of yours on one of these keys wins; so does a [keys] binding of yours that is not the default. To close the tab from a text field as Firefox's ctrl+w does, bind "<C-w>" = "tab.close" under [modal.insert] (below pairs it with the side panel). [modal] insert_editing = false in config.toml turns them off (then ctrl+m and ctrl+j mute and search in text fields too); Firefox's own actions on those keys stay off either way. On macOS, ctrl+h is already a backspace in text fields, so Vimma adds nothing there. While they are on, none of them can be the prefix (config.toml).

ctrl+n and ctrl+p, or ctrl+j and ctrl+k, move through a suggestion list. While a search field or any other field on a page shows its list of suggestions (a search engine's completions, a shop's product matches, Firefox's own list for a form field), ctrl+n or ctrl+j moves down the list and ctrl+p or ctrl+k up it, as Vim's insert-mode completion keys and most pickers' list keys do, so you pick a suggestion without leaving the home row. The page gets a real ArrowDown or ArrowUp, so its highlight moves and the field shows the suggestion as it does for the arrow keys. The address bar's results move the same way while they show. The page goes first: a web app that uses one of these keys itself keeps it. With no list open, the keys keep their other meanings: ctrl+j is Enter in a text field, ctrl+k goes to the page, ctrl+p prints, and ctrl+n goes to the page and opens no window (a new window is ctrl+b shift+c). So while a list shows, ctrl+j moves instead of sending the form or loading the address: press Enter or ctrl+m for that. On macOS, where ctrl+n and ctrl+p also move the caret down and up a line and ctrl+k deletes to the end of the line in every text field, they keep doing that while no list is open, so there ctrl+p prints only outside a text field. Vimma's own fields (the : line, the pickers) keep their keys. All four keys can be remapped in config.toml (suggestion_next and suggestion_prev under [modal.insert]; [unbind] insert = ["<C-j>"] gives ctrl+j back to Enter alone).

Esc in a text field is Vimma's. It leaves insert, so the page does not see that Esc: a site's own Esc (closing an autocomplete list or a dialog) does not fire from the field. Press Esc again: in normal mode the page gets Esc first, and only if the page leaves it alone does Esc stop a page still loading (the field no longer has focus, so the page's document gets it, not the field; a dialog that put focus back into its field gets it there, and closes).

A key that starts a sequence passes when nothing in that sequence works yet. ctrl+w starts the ctrl+w h/j/k/l, H/J/K/L, o and < > + - pane keys, which do something only with two panes or more, so in a window with one pane ctrl+w reaches the page (Firefox's own ctrl+w, close tab, is off: below). With a split, ctrl+w in normal mode waits for the pane key (Esc cancels); close the tab with x or ctrl+b shift+x. g starts gg, which works, so g is Vimma's: the page does not see it, and Esc cancels it.

Every default binding runs. A binding without a working command is never silent: a ctrl+b sequence, or a count followed by a key (3H), whose command does not exist shows "… not implemented yet" in the bottom-right corner for 1.5 s (not while a video or page is fullscreen); a single key whose command does not exist reaches the page or Firefox, with no message; and the ctrl+b ? overlay dims it.

The clipboard keys

p and P read the system clipboard (the one yy and copy mode's y write). The text is trimmed and its line breaks become spaces; one word with a scheme, a dot or a port (https://…, example.com, localhost:3000) loads as a URL, anything else goes to your default search engine. Text that would load as a javascript: or data: URL (also behind view-source:), or is longer than 8192 characters, is refused with a notice and nothing opens. P's tab opens in the current workspace, as :tabnew's does.

Link hints let you click without the mouse. f puts a short label on everything you could click on screen: links, buttons, form fields, and elements the page made clickable (ARIA buttons, tabs and menu entries, elements with a click handler), also inside web components and in frames from other sites. Each entry of an open menu gets its own label, also when the page puts a click handler on the list around them. Things off screen, hidden or covered by something else (a fixed header, a cookie banner) get no label. Type a label to pick its target: a link is followed, a button is pressed, a text field gets focus and the tab is in insert mode, and a list box (<select>) opens its list. The page takes your label as your click: a link that opens a new tab opens it, and a button that opens a window or goes full screen does so, without Firefox's pop-up blocker stepping in. Labels use the home row (a s d f g h j k l), in reading order: targets near the top get the shortest. As you type, labels that no longer match disappear. Backspace takes back a key and Esc leaves hints without doing anything. f right after a scroll key (d f) labels what is on screen where the scroll ends, at once, and scrolling with the mouse wheel while the labels are up draws them again where that scroll ends (the keys typed toward a label start over, also those typed before the new labels show). A wheel that moves none of the labelled targets, at the page's end or over a map that zooms, keeps the labels and the keys you typed.

gF labels links only and opens the one you pick in a new tab in the background, so you stay on the page and can pick more. Its labels are drawn in lower case (the other hint keys draw them in upper case), so typing a label as you see it opens the link in the background. To read the link now, type the label's last character in upper case (with Shift): sD instead of sd opens the same link in a new tab and switches to it, and the page you came from stays open behind it, so x on the new tab brings you back. Caps Lock counts as Shift. While the labels are up, the status bar shows both choices with a label you can type, such as sd background · sD go there. A label ending in a digit or punctuation (possible with a custom hint_chars) has no upper case and always opens in the background.

For hints that always switch to the new tab, whatever the case typed, bind the action follow_link_new_tab_fg (hint.follow_new_tab_fg), which has no key by default:

[modal.normal]
"<leader>F" = "hint.follow_new_tab_fg"

Firefox's browser.tabs.loadInBackground setting changes neither: the key you type decides. (F is element focus; a config.toml that binds F = "hint.follow_new_tab" under [modal.normal] keeps background-tab hints on F.)

In the PDF viewer f labels the PDF's links, c copies a link's target and :show_link_target shows it, instead of following it.

The labels are drawn by the browser, over the page, not inside it: the page cannot see them, restyle them or hide them. Apps that draw their own controls on a canvas (Google Docs, Figma, maps, games) have nothing to label.

You can answer a site's cookie banner without the mouse. f labels its buttons (allow all, reject, necessary only, settings), also when the banner sits in a frame from another site or in a web component. In the settings layer, each category's switch gets its own label, and its save button too. j, k, G and gg scroll the list of categories inside the banner, not the page behind it, so f reaches the switches further down. A banner in a frame scrolls once a label in it has been used, which puts the keys in that frame. Tab moves through the banner's controls, and F labels its paragraphs so you can copy them. One banner kind sets its categories with a slider instead of switches; Known limits says how to move it.

Copying a paragraph (element focus)

F (element focus) puts the same labels as link hints on the text on screen instead of on what you could click: paragraphs, headings, list items, quotes, code blocks, table cells and captions, also inside web components and in frames from other sites. Each block gets one label, on its first line on screen: a list item made of two paragraphs gets a label on each paragraph, and a code block gets one label however its lines are built. Hidden blocks, text fields and blocks covered by something else get none. Typing, Backspace and Esc work as they do for link hints.

Typing a label focuses its block: the browser draws an outline around it, the status bar badge says ELEMENT, and next to it the bar names the block and its length (paragraph · 412 chars), which a screen reader hears too. Nothing in the page changes while a block is focused: no selection, no focus, and the page cannot see the outline. The outline follows the block as the page scrolls.

KeyDoes
ycopies the block's text and goes back to normal mode
vselects the whole block in copy mode, to adjust it before y
Vthe same, line-wise, so j and k extend it by lines
+ / -focuses the block around it (the list around a list item) / back down again
j / kfocuses the next / previous block, scrolling it into view
Flabels again, to pick another block
Escback to normal mode, nothing selected; a loading page is not stopped

Counts work on +, -, j and k (3j). Any other binding, a tab switch, a navigation or a click leaves element focus.

  • Plain text. y copies the block as plain text, as copy mode's y copies a selection, and says yanked N chars. After v, y gives the same text.
  • Code blocks copy exactly as shown: indentation, tabs, blank lines and line breaks are kept, and line numbers the page marks unselectable are left out.
  • Unselectable text. When the page marks a whole block unselectable (user-select: none), y copies its text anyway and the notice says so; v shows no highlight there.
  • Frames. Blocks in frames get labels too. y copies from a frame without moving focus into it; v moves focus into the frame, where copy mode then runs. + stops at the frame's edge.
  • PDFs. The PDF viewer has lines, not paragraphs: F there says no text blocks here (PDF: use v), and copy mode copies from a PDF.

Element focus is F in normal mode and :focus_element on the command line; bind focus_element to another key in config.toml under [modal.normal]. The keys of the table are [modal.element]'s, and can be rebound there.

Find

Find works as it does in Vim. / opens a search prompt that floats at the bottom centre of the page, above the status bar, because that is where Vim types a search and where the status bar shows it, and it leaves the top of the page, where a match usually lands, uncovered. It takes the style of Vimma's pickers and your theme, opens empty, and searches as you type, in frames from other sites, inside web components and in the PDF viewer too. Opening it does not move the page. Matches are highlighted as in Firefox, and the prompt counts them as [2/5], as the status bar does, in a PDF too. The search starts at the top of what you see (or at the selection, if it is on screen), as Vim's starts at the cursor.

  • Case: smart case. An all lower-case search ignores case (word finds Word); one capital letter makes it match case (Word finds only Word). ctrl+f uses the same rule.
  • Enter keeps the match selected and closes the bar; you are back in normal mode. A search that found nothing goes back to where you were, and the status bar says not found.
  • Esc cancels: the bar closes, nothing stays selected and the page scrolls back to where it was when you pressed /.
  • A click outside the prompt closes it as Esc does, as the pickers close: nothing stays selected and the status bar forgets the search. The page stays where it is, and the click does what it would have done anyway (follows a link, focuses a field). The next / starts a new search.
  • n / N jump to the next / previous match without opening the bar, wrapping at the ends. After a search that found nothing they do nothing.
  • ? searches backward: it shows matches as you type, as / does, and Enter lands on the last match before where you were. After ?, n goes on backward and N forward.
  • A match in a text field (a site's search box that holds your query) is selected there, but the field does not keep the focus: you stay in normal mode and n / N go on to the next match. i, a click, or the page itself focusing the field puts you in it, in insert mode.

ctrl+f is a second key for /. Firefox's own find bar, under the page with its buttons and its Highlight All, Match Case, Match Diacritics and Whole Words options, still opens from the Edit menu's Find in Page, and there Enter goes to the next match.

Live grep

ctrl+b f g searches the text of every tab in your workspace as you type, as Telescope's live_grep searches files in Neovim. / finds text in one page; live grep finds the page.

  • The picker covers the page area, from below the toolbar (or the window's top when the toolbar is hidden) to the status bar. The prompt, titled Live Grep, is at the bottom, with matches listed / found on its right. Results stack above it, the best one next to the prompt and marked >. Each row shows its window (w1 is this one), the tab's number (the one ctrl+b 1..9 uses) and title, its host, :line:, and the line with the match highlighted; a line longer than the row is cut to fit around the match, with some of the text before it. A line is a paragraph, list item, heading or table cell (text after a <br> or in pre text starts a new one), numbered in the page. On the right, Grep Preview shows the ten lines before and after the selected match, the matched line highlighted and, when it is long, cut around the match; its title names the match's window, workspace, tab and host in full. In a window narrower than 900 pixels the preview is hidden and the results take the whole width.
  • The query is a regular expression in JavaScript's syntax (err(or)?s?\b, \d+ ms), matched line by line. Case follows ripgrep's smart case: all lower case ignores case, a capital letter matches it. Text that is not a valid expression, such as c++(, is searched as typed and the prompt says literal.
  • Keys. You type into the prompt. ctrl+n / ↓ move down the list, toward the best result, ctrl+p / ↑ up; Tab / shift+Tab jump to the next / previous tab's first result. ctrl+d / ctrl+u scroll the preview (without a preview, ctrl+u clears the prompt; ctrl+w and Backspace always edit it). Esc leaves the prompt for browsing: j / k, gg (top) and G (the best result), / or i back to the prompt, and Esc or q close.
  • ctrl+space keeps the results and filters them by fuzzy matching, as Telescope's refine: the prompt says fuzzy, and Esc goes back to the search.
  • The scope box above the results says what is being searched, before you type: its title names the scope (Scope: this workspace · ctrl+s), and a line per window gives its mark, its workspaces with their tab counts and how many tabs are not loaded, for example w1 this window: work 12, notes 3 · 15 tabs, 2 not loaded.
  • ctrl+s widens the search: this workspace → this window (every workspace in it) → all windows → all windows and recently closed tabs and windows → back to this workspace. The scope starts at this workspace each time live grep opens. Enter on a result in another window brings that window to the front and selects the match there.
  • Recently closed tabs and windows are searched by their title and URL only, since Firefox keeps no page text for them: at most the 25 tabs and 5 windows Firefox remembers. They are listed after the open tabs' results, labelled closed or closed window; Enter reopens the tab in this window and goes there, or reopens the window.
  • Enter goes to the result: it selects the tab (and the pane that shows it in a split), selects the match with find's highlight and scrolls it to the middle. You are in normal mode; v starts copy mode with the match selected, so v y copies it. If the page changed since the search, the same match is found again; if it is gone, a notice says match no longer on the page.
  • ]q / [q go to the next / previous result of that search afterwards, across tabs (and windows, in the wider scopes) and wrapping, as Vim's quickfix list; a notice says where you are (grep 3/12). :grep alone opens live grep again with the last query; :grep text opens it with that text.
  • Not searched: tabs that have not loaded since a restart (they are listed at the far end as not loaded; Enter opens one, so you can search again), form fields, text drawn on a canvas, images, closed <details>, PDFs, and pages Vimma cannot read (extension and data: pages). A page in a frame from another site is searched; its rows say ↳ host.
  • Limits. A search stops in a page, or in the closed tabs' titles, after a second (timed out, so a pattern that would backtrack for ever never freezes the page or Vimma), covers at most 100 frames a tab and the first million characters of a page (cut), and lists at most 2,000 results. Each frame of a page lists its first 100 matches and counts up to 1,000, so the count can read 100 / 312; narrow the query to list the rest. A query over 1,000 characters is not run (too long).
  • Private and agent tabs. From a normal window live grep never sees the private workspace, open or recently closed, in any scope; in the private workspace it sees only private tabs. The agent workspace's tabs are searched only when the scope includes them (from this window on), listed last and marked ◇ agent.
  • Page text stays in the page's own process while the picker is open and is dropped when it closes; Vimma keeps only the lines it shows, in memory, and never writes them to disk.

Copy mode

v (or ctrl+b [, as in tmux) enters copy mode: a caret appears at the start of the first text you see, or at the selection if one is on screen, and the badge says VISUAL. It is Firefox's caret browsing (F7), for this page only, driven by Vim keys:

  • h / l move the caret a character, j / k a line, w / b a word (Firefox's word steps: w stops at the end of a word), 0 / $ to the start / end of the line, gg / G to the top / bottom of the page. The page scrolls to keep the caret in view.
  • e goes to the end of the word, ge to the end of the previous one. W / B / E are the same for WORDs, which only spaces delimit (beta.gamma is one WORD). ^ goes to the first non-blank character of the line, { / } to the start / end of the paragraph (the next one from its edge).
  • f / F and a character go to the next / previous one on the line, including it in the selection; t / T stop just before it. ; repeats the last of these, , repeats it the other way. The line here is the text between line breaks, even if the page wraps it.
  • A count repeats any motion: 3e, 5j, 2f,.
  • v starts a selection at the caret; the motions then extend it. v again drops it and the caret moves on its own. V selects whole lines instead: the motions add lines, and V again drops it (v keeps the same text, character by character). o swaps the ends, so the motions move the other one. iw selects the word at the caret, aw the word and the spaces after it.
  • ip selects the text block the caret is in (the paragraph, heading, list item, quote, code block or table cell), as v from element focus would. ap does the same, and each further ap grows the selection to the block around it: the section, then the article. A code block is selected whole from any of its lines. Blocks are the page's elements, not blank lines as in Vim.
  • y copies the selection to the clipboard as plain text, says "yanked 12 chars" and goes back to normal mode. With nothing selected it says "nothing to yank". Y copies the whole lines the selection (or the caret) is on, then leaves the same way.
  • Esc drops the selection and goes back to normal mode.

With the mouse. Selecting text with the mouse in normal mode (dragging, a double click for a word, a triple click for a paragraph, shift+click) enters copy mode with that selection: the badge says VISUAL, y copies it, the motions extend it (a double click on a word, then e, takes the next word too) and Esc clears it. A click that selects nothing stays in normal mode, and so do links, text fields (insert mode, as always), drag and drop, and a page that selects text by itself. Firefox's own copying keeps working in every mode and in each pane: ctrl+c, the context menu's Copy, and a middle click pasting the mouse selection.

The page gets none of these keys, nor any other plain key while copy mode is on; chords such as ctrl+c or ctrl+t still work. In a frame (an embedded video page, a comment widget) copy mode works once the frame has focus (click it first). Text inside a text field is not reachable: focus the field and use its own selection.

The command line

: in normal mode opens a Vim-style command line just above the status bar, for everything that is quicker to type than to bind. Type a command and press Enter; Esc closes it and puts focus back on the page. While it is open nothing you type reaches the page, and ctrl+b sequences still work.

  • Completion. A list of matching commands and actions, with what each does, follows what you type. Tab puts the next match on the line, shift+Tab the previous; both wrap around. Down does the same once you have typed something: it selects the first match, then Down / Up move through the list, and Up on the first match goes back to what you typed. Typing more narrows the list. Matching also takes letters in order (scd finds scroll_down).
  • History. Up / Down walk the lines you ran before, newest first. With text typed, Up recalls only lines that start with it, as in Vim, and Down then walks back towards your text. On an empty line, or when nothing matches, Down stays in history. History lasts until Vimma quits; a private window keeps its own, forgotten when it closes.
  • :open @ and Tab lists the search aliases (@gh, @google, …) with the engine each one searches; the chosen one ends in a space, ready for the words.
  • :open and :tabnew refuse javascript: and data: URLs (also behind view-source:), with a message, as p does, and so does a bookmark keyword that leads to one (a bookmarklet). The line does not open over a fullscreen page.
  • From the start page's address bar. A new tab's address bar has focus, so a line typed there that starts with : is a command line too: Enter (or shift+Enter) runs it exactly as here, and it never goes to the search engine. alt+Enter, ctrl+Enter, Paste & Go and text dropped on the address bar only put the line here for you to check and run with Enter, since a web page can put text on the clipboard. On other pages the address bar searches as in Firefox: press Esc (twice once you have typed) and then : instead.
  • Errors show under the line, which stays open so you can fix it: :tabnwe says not a command: "tabnwe"; did you mean :tabnew?.
  • A dialog over the line. When a page opens an alert, a confirm question or "Leave page?" while you type, the line stays open behind it with what you typed. Answer the dialog with its own keys (y, n, Esc, Answering a dialog) and you are back on the line, as with a / search.
  • A command name can be shortened while it stays unique (:tabr, :wsp), and leading colons are fine (::q). When the shortened name starts several commands and one of them begins all the others, that one wins, as in Vim: :wor is :workspace (not :workspaces), :bo :bookmark. :wsn is :wsnext, as Vim's :wsn[ext].
  • :tab N (or Vim's :tabnext N) goes to tab N of this workspace, as {N}gt does, and :tab $ to the last. A tab that does not exist says so with the count: no tab 20 (this workspace has 15). Tab after :tab lists the tabs by number with their titles; type a title's letters to narrow it. :tab and :tabnext run only typed in full, so :tabn stays :tabnew.
  • An argument is the rest of the line, as typed. Quotes are removed only when one pair wraps all of it: :tabrename "my tab".

The table lists the main commands; the completion list shows every one, and the other sections give the rest.

CommandWhat it does
:open textAs the address bar would: example.com a web address, @gh words that alias's engine, a bookmark keyword its bookmark, other words a search.
:tabnew, :tabnew textOpens a new tab; with text, opens it there (as :open).
:q, :quitCloses the pane, as ctrl+b x; with one pane the tab, as x: a pinned tab is kept and the next one selected.
:map, :help, :hShows every binding (the ctrl+b ? overlay).
:scroll_down, :tab.next…Any action by its name in bindings.md, or by its dotted id. Actions take no argument.
:tabrename [name]Renames the tab; without a name, opens the rename prompt.
:lsOpens tab search.
:tab N, :tabnext N, :tab $Goes to tab N of this workspace, as {N}gt; $ the last, alone the next. Typed in full.
:sleep, :sleep all, :sleep NPuts this workspace's tabs, every workspace's, or tab N to sleep at once.
:tabsearch [text], :ts, :bOpens tab search with the text already typed.
:grep text, :grepOpens live grep with that text; alone, with the last query.
:vsplit/:vs, :split/:spSplits the pane right / down, as ctrl+b v / ctrl+b -.
:layout [name]Arranges the panes in the named preset (Layouts); Tab completes the names. Without one, the next preset.
:wsnext/:wn, :wsprev/:wpNext / previous workspace, as ctrl+b ) / ctrl+b (.
:workspace name, :ws 2, :ws #Switches to the workspace with that name, that number in workspace order, or the previous one (ctrl+^). Tab completes names.
:workspace, :ws, :workspacesOpens the workspace picker.
:wa name, :wd [name]:wsnew, :wsdelete (Workspaces as Vim buffers).
:private, :priv, :private closeGoes to the private workspace and back, as ctrl+b shift+p; close closes it (asks y/N).
:sidebarOpens or closes the side panel, as ctrl+b b.
:route, :route add, :route moveWorkspace routing rules: list them, add one for this site, move this tab (Routing).
:bookmarksOpens or closes the bookmarks panel, as ctrl+b shift+b.
:bookmark [path]Bookmarks the page under path (work/docs/title); without one, opens the prompt, as ctrl+b a.
:bookmarkopen [title]Opens the bookmark with that title in this tab; a partial or shared title, or none, opens a picker (Bookmarks).
:bookmarktab [title]The same in a new tab in front.
:sourceReads config.toml now instead of within 2 seconds (see config.toml).
:source pathLoads that TOML file instead of config.toml until config.toml changes or a plain :source.
:configOpens config.toml in a new tab (read-only view); creates it from a commented template when it is missing.
:mcp [on\|off\|revoke\|forget]Agents and the agent workspace: the status, on (asks y/N), off, revoke the grants, or forget its logins (asks y/N).
:control [on N\|off]Full control for vimma-ctl: the status, on for N minutes (asks y/N), or off now (below).
:theme [dark\|light\|system]The built-in palette dark, light or as the system is; bare, the other of dark and light (see Colours).
:about, :vimmaOpens about:vimma in a new tab.
:settings [pane], :prefsOpens Settings, or selects its open tab in this workspace; home, search, privacy, sync (Tab) go to that pane.
:addonsOpens the add-on picker, as ctrl+b e.
:downloadsOpens the downloads picker, as ctrl+b d.
:addon nameOpens that add-on's popup; Tab completes the name (Add-ons).
:site, :permissionsOpens the site permissions picker for the selected tab.
:popupsOpens the blocked pop-ups picker: allow, reset or block the site, open one.
:siteunbind [--save] [key …]Gives the keys to this site's page until restart, or for good with --save; bare, lists them (Keys a site keeps).
:sitebind [--delete] key …Gives the keys back to Vimma on this site; --delete also removes them from config.toml (Keys a site keeps).
:bugOpens about:vimma and copies its redacted report to the clipboard, for a bug report.
:updateChecks for a newer Vimma now; when there is one, opens about:vimma's Updates section with the exact commands (Updates).
:restartRestarts Vimma; tabs come back, and an installed update applies. Asks first while private tabs are open (Updates).

A command whose action has no implementation says so for a moment, as its keys do.

Known limits

Vimma is alpha. What does not work yet, or works with a catch, is listed on the known limits page:

The guide at the top is written for this site; the details are built from Vimma's docs/guide.md at 92c02d5 (2026-11-25), and the keys from docs/bindings.json at 92c02d5 (2026-11-25).

Keys

This site

Keyboard shortcuts for this website
j kscroll down, up
d uhalf a page down, up
gg Gtop, bottom
/search the docs on a docs page, filter the keys on the keys page; elsewhere, go to the keys filter
] [next, previous docs page
g hgo home
g dgo to the docs
g kgo to keys
g igo to install
g ago to about
?this help; Esc or q closes it, and in here / filters Vimma's keys

In Vimma

Every default binding, grouped as Vimma's own ctrl+b ? groups them. The same list is on the keys page.

Loading…