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
| Badge | When you are in it | How to get back to normal |
|---|---|---|
NORMAL | On every page, by default. Letters are Vimma's commands; the page does not see them. | You are there. |
INSERT | While a text field has focus, or after i. Keys type into the page. | Esc |
HINT | After f or gF: labels on everything you can click. | Type a label, or Esc |
ELEMENT | After F and a label: a block of text is outlined, ready to copy (Copy a paragraph). | y copies and leaves, or Esc |
VISUAL | Copy mode, after v: a caret and a selection (Copy text). | y copies and leaves, or Esc |
COMMAND | While you type a : command or a / search, at the bottom of the window. | Enter runs it, Esc cancels |
HELP | While the ctrl+b ? key list or ctrl+b g tab search is open. | Esc (or q in the key list) |
RESIZE | After 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
prefixwhile 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
| To | Press |
|---|---|
| Scroll down / up, left / right | j k, h l |
| Half a page down / up | d or u |
| Top / bottom of the page | gg or G |
A number before a key repeats it: 5j scrolls five steps.
Follow a link
- Press f. A label, one or two letters, appears on every link, button and field you can see.
- 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
- Press / and type. Matches light up as you type, and the status bar counts them.
- Press Enter to stay on the match, or Esc to go back to where you were.
- 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
| To | Press |
|---|---|
| Back / forward | H or L (Firefox's alt+left / alt+right work too, cmd+left / cmd+right on macOS) |
| Reload | r |
| Copy this page's address | yy |
| Open the address (or search the text) on the clipboard, here / in a new tab | p or P |
Copy text
Copy mode selects and copies text from a page with Vim's motions.
- Press v. A caret appears at the first text you can see, and the badge says
VISUAL. - 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.
- Press v to start the selection (V for whole lines), then move to extend it.
- 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:
| Command | What it does |
|---|---|
:open example.com | Opens the address in this tab; other words are a web search. |
:tabnew example.com | The same, in a new tab. |
:q | Closes the pane, or the tab when there is one pane. |
:workspace work | Switches to the workspace called work. |
:help | Lists 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
- Look at the badge.
INSERTmeans a text field has focus: press Esc. - Settings (
about:preferences) focuses its search box when it opens, so it starts in insert mode: press Esc before j or k. - Extension pages,
data:andblob: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)
| Action | Keys | Name |
|---|---|---|
| Back to normal mode | escinsertescvisualescelement | normal_mode |
| Insert mode: focus the last-used input | i | insert_mode |
| Copy mode (caret browsing + selection) | ctrl+b [v | copy_mode |
| Command line | : | command_line |
| Close the command line | esccommand | command_cancel |
Navigation (22)
| Action | Keys | Name |
|---|---|---|
| Tab search: every tab, every window, recently closed | ctrl+b gctrl+shift+ab | goto_picker |
| Open / close the side panel | ctrl+b b | toggle_sidebar |
| Show / hide the toolbar (URL bar and add-on buttons) | ctrl+b u | toggle_toolbar |
| Show the toolbar | no default key | show_toolbar |
| Hide the toolbar (the address bar shows when focused) | no default key | hide_toolbar |
| Scroll down | jctrl+e | scroll_down |
| Scroll up | kctrl+y | scroll_up |
| Scroll left | h | scroll_left |
| Scroll right | l | scroll_right |
| Scroll half a page down | dctrl+d | scroll_half_down |
| Scroll half a page up | uctrl+u | scroll_half_up |
| Scroll to top | gg | scroll_top |
| Scroll to bottom | G | scroll_bottom |
| Scroll keys: next scroll area (a count: the Nth) | gs | scroll_area_next |
| Scroll keys: previous scroll area | gS | scroll_area_prev |
| Go back | alt+leftHctrl+octrl+[ | history_back |
| Go forward | alt+rightLctrl+ictrl+] | history_forward |
| Reload page | f5ctrl+rrRpdf | reload |
| Open a URL or search in this tab | no default key | open_url |
| Go up a level in the URL path | gu | url_up |
| Go to the site's root | gU | url_root |
| Focus the address bar, its text selected | ctrl+lalt+dIIvisualIpanel | focus_urlbar |
Page (7)
| Action | Keys | Name |
|---|---|---|
| Copy the page's URL | yyYpdf | yank_url |
| Open the clipboard's URL or search in this tab | p | open_clipboard |
| Open the clipboard's URL or search in a new tab | P | open_clipboard_tab |
| Focus the first text field (with a count: the Nth) | gi | focus_input |
| View the page's source in a new tab | gf | view_source |
| Next suggestion in an open list | ctrl+ninsertctrl+jinsert | suggestion_next |
| Previous suggestion in an open list | ctrl+pinsertctrl+kinsert | suggestion_prev |
Hints (9)
| Action | Keys | Name |
|---|---|---|
| Follow link | f | follow_link |
| Follow link in new tab | gF | follow_link_new_tab |
| Follow link in new tab and switch to it | no default key | follow_link_new_tab_fg |
| Focus a text block: v selects it, y copies it | FFelement | focus_element |
| Show a link's target without following it | no default key | show_link_target |
| Copy a link's target | cpdf | copy_link_target |
| Hover an element: show what the page shows under the mouse | gh | hover_element |
| End the hover | no default key | hover_release |
| Leave hint mode | eschint | hint_cancel |
Element focus (7)
| Action | Keys | Name |
|---|---|---|
| Select the focused block in copy mode | velement | element_visual |
| Select the focused block's lines in copy mode | Velement | element_visual_line |
| Copy the focused block's text | yelement | element_yank |
| Focus the block around this one | +element | element_parent |
| Focus back down, or the first block inside | -element | element_child |
| Focus the next block | jelement | element_next |
| Focus the previous block | kelement | element_prev |
Find (8)
| Action | Keys | Name |
|---|---|---|
| Search in page | ctrl+f/ | find_forward |
| Search backwards in page | ? | find_backward |
| Next match | ctrl+gf3n | find_next |
| Previous match | ctrl+shift+gshift+f3N | find_previous |
| Live grep: search the text of the workspace's tabs | ctrl+b f g | live_grep |
| Next result of the last live grep | ]q | grep_next |
| Previous result of the last live grep | [q | grep_previous |
| Live grep again with the last query (:grep) | no default key | grep_resume |
Copy mode (33)
| Action | Keys | Name |
|---|---|---|
| Move caret left | hvisual | caret_left |
| Move caret down | jvisual | caret_down |
| Move caret up | kvisual | caret_up |
| Move caret right | lvisual | caret_right |
| Move caret a word forward | wvisual | caret_word_forward |
| Move caret a word back | bvisual | caret_word_backward |
| Move caret to the start of the line | 0visual | caret_line_start |
| Move caret to the end of the line | $visual | caret_line_end |
| Move caret to the top of the page | ggvisual | caret_top |
| Move caret to the bottom of the page | Gvisual | caret_bottom |
| Move caret to the end of the word | evisual | caret_word_end |
| Move caret to the previous word's end | gevisual | caret_prev_word_end |
| Move caret to the next WORD (by spaces) | Wvisual | caret_bigword_next |
| Move caret to the WORD's start | Bvisual | caret_bigword_back |
| Move caret to the end of the WORD | Evisual | caret_bigword_end |
| Move caret to the line's first non-blank | ^visual | caret_first_char |
| Move caret to the paragraph's start | {visual | caret_para_back |
| Move caret to the paragraph's end | }visual | caret_para_next |
| Find a character forward on the line | fvisual | caret_find_forward |
| Find a character backward on the line | Fvisual | caret_find_backward |
| Till a character forward on the line | tvisual | caret_till_forward |
| Till a character backward on the line | Tvisual | caret_till_backward |
| Repeat the last f, F, t or T | ;visual | caret_find_repeat |
| Repeat the last find, reversed | ,visual | caret_find_reverse |
| Start or drop a selection at the caret | vvisual | toggle_selection |
| Start or drop a line-wise selection | Vvisual | line_selection |
| Swap the selection's ends | ovisual | swap_selection_ends |
| Select the word at the caret | iwvisual | select_inner_word |
| Select the word at the caret and its spaces | awvisual | select_a_word |
| Select the text block at the caret | ipvisual | select_inner_block |
| Select the block at the caret; again: its parent | apvisual | select_a_block |
| Copy selection and leave copy mode | yvisual | yank_selection |
| Copy the selection's whole lines and leave | Yvisual | yank_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+bis the prefix, like tmux's default prefix. The next key is a command:ctrl+b ?shows the bindings,ctrl+b copens a tab,ctrl+b vsplits the pane, and so on. The prefix works in every mode and waits for the next key with no timeout.Esccancels it. - The modal layer (Vim). Bare keys act on the page depending on the mode:
j/kscroll innormalmode, while ininsertmode (focus in a text field) keys go to the page.visualis copy mode (caret and selection),hintis link hints,elementis element focus (F),helpthe bindings overlay andcommandthe:line,resizeis resize mode for panes (ctrl+b r),panelthe side panel (ctrl+b b) andindexthe 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
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.
Cookie banners
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.
| Key | Does |
|---|---|
y | copies the block's text and goes back to normal mode |
v | selects the whole block in copy mode, to adjust it before y |
V | the 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 / k | focuses the next / previous block, scrolling it into view |
F | labels again, to pick another block |
Esc | back 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.
ycopies the block as plain text, as copy mode'sycopies a selection, and saysyanked N chars. Afterv,ygives 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),ycopies its text anyway and the notice says so;vshows no highlight there. - Frames. Blocks in frames get labels too.
ycopies from a frame without moving focus into it;vmoves focus into the frame, where copy mode then runs.+stops at the frame's edge. - PDFs. The PDF viewer has lines, not paragraphs:
Fthere saysno 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 (
wordfindsWord); one capital letter makes it match case (Wordfinds onlyWord).ctrl+fuses the same rule. Enterkeeps 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 saysnot found.Esccancels: 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
Escdoes, 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/Njump 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, andEnterlands on the last match before where you were. After?,ngoes on backward andNforward.- 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/Ngo 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, withmatches listed / foundon its right. Results stack above it, the best one next to the prompt and marked>. Each row shows its window (w1is this one), the tab's number (the onectrl+b 1..9uses) 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 inpretext starts a new one), numbered in the page. On the right,Grep Previewshows 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 asc++(, is searched as typed and the prompt saysliteral. - Keys. You type into the prompt.
ctrl+n/↓move down the list, toward the best result,ctrl+p/↑up;Tab/shift+Tabjump to the next / previous tab's first result.ctrl+d/ctrl+uscroll the preview (without a preview,ctrl+uclears the prompt;ctrl+wandBackspacealways edit it).Escleaves the prompt for browsing:j/k,gg(top) andG(the best result),/oriback to the prompt, andEscorqclose. ctrl+spacekeeps the results and filters them by fuzzy matching, as Telescope's refine: the prompt saysfuzzy, andEscgoes 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 examplew1 this window: work 12, notes 3 · 15 tabs, 2 not loaded. ctrl+swidens 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.Enteron 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
closedorclosed window;Enterreopens the tab in this window and goes there, or reopens the window. Entergoes 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;vstarts copy mode with the match selected, sovycopies it. If the page changed since the search, the same match is found again; if it is gone, a notice saysmatch no longer on the page.]q/[qgo 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).:grepalone opens live grep again with the last query;:grep textopens it with that text.- Not searched: tabs that have not loaded since a restart (they are listed at the far end as
not loaded;Enteropens one, so you can search again), form fields, text drawn on a canvas, images, closed<details>, PDFs, and pages Vimma cannot read (extension anddata: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 read100 / 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 windowon), 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/lmove the caret a character,j/ka line,w/ba word (Firefox's word steps:wstops at the end of a word),0/$to the start / end of the line,gg/Gto the top / bottom of the page. The page scrolls to keep the caret in view.egoes to the end of the word,geto the end of the previous one.W/B/Eare the same for WORDs, which only spaces delimit (beta.gammais 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/Fand a character go to the next / previous one on the line, including it in the selection;t/Tstop 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,. vstarts a selection at the caret; the motions then extend it.vagain drops it and the caret moves on its own.Vselects whole lines instead: the motions add lines, andVagain drops it (vkeeps the same text, character by character).oswaps the ends, so the motions move the other one.iwselects the word at the caret,awthe word and the spaces after it.ipselects the text block the caret is in (the paragraph, heading, list item, quote, code block or table cell), asvfrom element focus would.apdoes the same, and each furtherapgrows 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.ycopies 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".Ycopies the whole lines the selection (or the caret) is on, then leaves the same way.Escdrops 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.
Tabputs the next match on the line,shift+Tabthe previous; both wrap around.Downdoes the same once you have typed something: it selects the first match, thenDown/Upmove through the list, andUpon the first match goes back to what you typed. Typing more narrows the list. Matching also takes letters in order (scdfindsscroll_down). - History.
Up/Downwalk the lines you ran before, newest first. With text typed,Uprecalls only lines that start with it, as in Vim, andDownthen walks back towards your text. On an empty line, or when nothing matches,Downstays in history. History lasts until Vimma quits; a private window keeps its own, forgotten when it closes. :open @andTablists the search aliases (@gh,@google, …) with the engine each one searches; the chosen one ends in a space, ready for the words.:openand:tabnewrefusejavascript:anddata:URLs (also behindview-source:), with a message, aspdoes, 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(orshift+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 withEnter, since a web page can put text on the clipboard. On other pages the address bar searches as in Firefox: pressEsc(twice once you have typed) and then:instead. - Errors show under the line, which stays open so you can fix it:
:tabnwesaysnot 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::woris:workspace(not:workspaces),:bo:bookmark.:wsnis:wsnext, as Vim's:wsn[ext]. :tab N(or Vim's:tabnext N) goes to tab N of this workspace, as{N}gtdoes, and:tab $to the last. A tab that does not exist says so with the count:no tab 20 (this workspace has 15).Tabafter:tablists the tabs by number with their titles; type a title's letters to narrow it.:taband:tabnextrun only typed in full, so:tabnstays: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.
| Command | What it does |
|---|---|
:open text | As 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 text | Opens a new tab; with text, opens it there (as :open). |
:q, :quit | Closes 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, :h | Shows 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. |
:ls | Opens 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 N | Puts this workspace's tabs, every workspace's, or tab N to sleep at once. |
:tabsearch [text], :ts, :b | Opens tab search with the text already typed. |
:grep text, :grep | Opens live grep with that text; alone, with the last query. |
:vsplit/:vs, :split/:sp | Splits 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/:wp | Next / 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, :workspaces | Opens the workspace picker. |
:wa name, :wd [name] | :wsnew, :wsdelete (Workspaces as Vim buffers). |
:private, :priv, :private close | Goes to the private workspace and back, as ctrl+b shift+p; close closes it (asks y/N). |
:sidebar | Opens or closes the side panel, as ctrl+b b. |
:route, :route add, :route move | Workspace routing rules: list them, add one for this site, move this tab (Routing). |
:bookmarks | Opens 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. |
:source | Reads config.toml now instead of within 2 seconds (see config.toml). |
:source path | Loads that TOML file instead of config.toml until config.toml changes or a plain :source. |
:config | Opens 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, :vimma | Opens about:vimma in a new tab. |
:settings [pane], :prefs | Opens Settings, or selects its open tab in this workspace; home, search, privacy, sync (Tab) go to that pane. |
:addons | Opens the add-on picker, as ctrl+b e. |
:downloads | Opens the downloads picker, as ctrl+b d. |
:addon name | Opens that add-on's popup; Tab completes the name (Add-ons). |
:site, :permissions | Opens the site permissions picker for the selected tab. |
:popups | Opens 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). |
:bug | Opens about:vimma and copies its redacted report to the clipboard, for a bug report. |
:update | Checks for a newer Vimma now; when there is one, opens about:vimma's Updates section with the exact commands (Updates). |
:restart | Restarts 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).