Vimma

PDF viewer

PDFs open in Firefox's own viewer, pdf.js. Every Vimma key does there what it does on any page, and Vimma adds keys for pages, zoom and the outline on the keys it leaves free.

Read a PDF

  1. Open a PDF in its own tab. The status bar shows the page, such as page 3/12, and a PDF with an outline opens with it on the left.
  2. Press J and K for the next and previous page, or 12G to go to page 12.
  3. Press s to fit the page's width, or a to fit the whole page.
  4. Press / to find text; the status bar shows the match count.

Get around

ToPress
Next / previous pageJ / K
First / last page, or page 12gg / G, or 12G
Zoom in / out+ / -
Fit the whole page / its widtha / s
Move into the outlineTab
Set a mark / go back to itm / ' and a letter
Back / forward through your jumpsctrl+o / ctrl+i
Follow a linkf and its label

A PDF that a page shows inside itself, in a frame, keeps the page's keys: open it in its own tab for these.

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.

PDF viewer (20)

ActionKeysName
Next page (with a count: that many pages)Jpdfpdf_next_page
Previous page (with a count: that many pages)Kpdfpdf_previous_page
First page; with a count, that page (12gg, :12)ggpdfpdf_first_page
Last page; with a count, that page (12G)Gpdfpdf_last_page
Top of the current pageno default keypdf_page_top
Bottom of the current pageno default keypdf_page_bottom
Scroll a screen downno default keypdf_screen_down
Zoom in by 10 % (with a count: that many steps)+pdfzipdfzIpdfpdf_zoom_in
Zoom out by 10 % (with a count: that many steps)-pdfzopdfzOpdfpdf_zoom_out
Zoom to 100 %; with a count, that percent (150=)=pdfzzpdfzZpdfz0pdfpdf_zoom_set
Fit the whole page, also after a resizeapdfpdf_fit_page
Fit the page's width, also after a resizespdfpdf_fit_width
Two pages side by side, or one (:dual)no default keypdf_dual_page
Two pages: the first alone, or pairedDpdfpdf_first_page_alone
One page at a time, or scrollingwpdfpdf_single_page
Rotate the pages 90 degrees clockwise (:rotate; a count: n times)no default keypdf_rotate
Presentation mode, or leave it (:present)no default keypdf_presentation
Open the outline (table of contents) in a paneltabpdfpdf_outline
Set a mark here: m and a letter or digitmpdfpdf_mark_set
Go back to a mark: ' and its letter or digit'pdfpdf_mark_go

PDF outline (15)

ActionKeysName
Outline: next entryjindexdownindexindex_down
Outline: previous entrykindexupindexindex_up
Outline: expand the entrylindexzoindexindex_expand
Outline: collapse the entry, or go to its parenthindexzcindexindex_collapse
Outline: expand the entry and all under itzOindexindex_expand_subtree
Outline: collapse the entry and all under itzCindexindex_collapse_subtree
Outline: expand every entryLindexzRindexindex_expand_all
Outline: collapse every entryHindexzMindexindex_collapse_all
Outline: first entryggindexindex_first
Outline: last entryGindexindex_last
Outline: down half the entries shownctrl+dindexindex_half_down
Outline: up half the entries shownctrl+uindexindex_half_up
Outline: go to the entry and close the outlineenterindexspaceindexindex_follow
Outline: close it (in the filter: back to the whole outline)tabindexescindexctrl+[indexqindexindex_close
Outline: filter the entries by their titles/indexindex_filter

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.

PDFs open in Firefox's own viewer, pdf.js, Mozilla's PDF reader, and Vimma drives it with the same keys as every other page, plus keys for pages, zoom and the outline. pdf.js keeps rendering, forms, printing and accessibility; Vimma adds the keys, a page count in the status bar and an outline panel, and gives the viewer's toolbar, menus and the space around the pages your theme's colours, light or dark. Pages are shown in the document's own colours.

A PDF with an outline opens with it shown on the left, the entry for the page you are on selected as you move; your keys stay with the document, so J and / work at once. pdf.js's own sidebar and its button do not show: Vimma's outline takes its place. To open PDFs without the outline, put [ui] pdf_outline = "hidden" in config.toml; Tab still opens it.

Every Vimma key does in the PDF viewer what it does on any page (only gg and G with a count go to page N, as in 12G), so your hands need not know which kind of page they are on: d scrolls half a screen, r and F5 reload, H / L go back and forward, P opens the clipboard in a new tab and ctrl+f finds. F (element focus) is the exception: a PDF has no text blocks, so use v there (copy mode). Vimma adds PDF keys only on the keys it leaves free; the other PDF actions are commands:

  • Pages. J / K go to the next / previous page, with a count (3J). gg goes to the first page and G to the last; with a count, to that page (12G, 12gg), counted from 1 whatever the page labels say. :12 on the command line goes to page 12 too. :pdf_page_top and :pdf_page_bottom go to the top / bottom of the current page. space and shift+space scroll a screen down and up, and Home / End go to the first / last page, as in pdf.js.
  • Zoom. +, zi, zI zoom in and -, zo, zO zoom out by 10 % per step, with a count (2+). =, zz, zZ and z0 set 100 %, and a count sets that percent (150=). a fits the whole page and s the page's width, and the fit follows window and pane resizes until you zoom by hand.
  • Layout. :dual shows two pages side by side, with the first page alone as in a printed book, and again goes back to one; D toggles whether the first page stands alone. w shows one page at a time. :rotate rotates the pages 90° clockwise.
  • Outline. Tab moves into the document's outline (its table of contents), in a panel on the left of the window in your theme, opening it if it is not shown, with the entry for the current page selected; the badge says INDEX. j / k (and the arrow keys) move, l / zo expand and h / zc collapse an entry, zO / zC expand / collapse an entry with everything under it, L / zR and H / zM expand / collapse them all, gg / G go to the first / last entry and ctrl+d / ctrl+u move half a panel. Enter or space goes to the entry and gives your keys back to the document (an outline shown as the PDF opened stays shown; one Tab opened closes); Tab, Esc, ctrl+[ or q closes it where you were, and it stays closed for that document. / filters the outline as you type, best match first, each entry shown under the titles of the entries above it; Enter goes to the entry and Esc returns to the whole outline. A PDF without an outline says no outline in this PDF.
  • Marks. m and a letter or digit marks where you are (the page, the place on it and the zoom); ' and the same character takes you back. Marks belong to the document (its address without the # part), so two tabs of one PDF share them. They last until Vimma quits, are never written to disk, and a private window's go when it closes. An unset mark says no mark 'a'.
  • Jumps. ctrl+o / ctrl+i walk back and forward through your jumps inside the PDF (a link, a page jump, a search hit, a mark, an outline entry) before they leave the PDF for the page before it, as Vim's jump list does.
  • Links. f labels the links on screen and follows the one you pick. c labels them and copies the chosen link's target, and :show_link_target shows it in a notice without following it.
  • Presentation. :present starts pdf.js's presentation mode: full screen, one page at a time, fitted to the screen. There j, J, space and the arrow keys go forward a page and k, K and shift+space back; Esc leaves it. F11 is Vimma's full screen, as everywhere.
  • Files. r, R, F5 and ctrl+r reload the PDF, ctrl+p prints it, ctrl+s saves it, and yy and Y copy its address.

Form fields in a PDF are text fields like any other: focusing one is insert mode, and Esc leaves it. / finds in the PDF with the match count in the status bar, and the status bar shows the page as page 3/12, or page iv (4/120) when the page has a label that is not its number.

A PDF that a web page shows inside itself (in a frame, <embed> or <object>) keeps the page's keys; open it in its own tab for these. In a PDF, as everywhere, ctrl+b is the prefix, t opens a tab, x and :q close it, and alt+left / alt+right go back and forward. Marks and the jump list are not kept across restarts, and :open with a file:// address opens a local PDF.

Every one of these keys can be changed in config.toml: [modal.pdf] holds the PDF viewer's normal-mode keys, over [modal.normal], and [modal.index] the outline's. [unbind] pdf = ["D"] takes D off in the PDF viewer only. To give d, r, H, L, P, F, ctrl+f and F5 PDF actions in the PDF viewer instead of Vimma's, uncomment the block under [modal.pdf] in the file :config writes (or copy it from defaults.toml). ctrl+b ? lists them under [pdf] and [index], and bindings.md has their config names.

Known limits

Vimma is pre-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 1134cbe (2026-11-20), and the keys from docs/bindings.json at 1134cbe (2026-11-20).

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…