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
- 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. - Press J and K for the next and previous page, or 12G to go to page 12.
- Press s to fit the page's width, or a to fit the whole page.
- Press / to find text; the status bar shows the match count.
Get around
| To | Press |
|---|---|
| Next / previous page | J / K |
| First / last page, or page 12 | gg / G, or 12G |
| Zoom in / out | + / - |
| Fit the whole page / its width | a / s |
| Move into the outline | Tab |
| Set a mark / go back to it | m / ' and a letter |
| Back / forward through your jumps | ctrl+o / ctrl+i |
| Follow a link | f 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)
| Action | Keys | Name |
|---|---|---|
| Next page (with a count: that many pages) | Jpdf | pdf_next_page |
| Previous page (with a count: that many pages) | Kpdf | pdf_previous_page |
| First page; with a count, that page (12gg, :12) | ggpdf | pdf_first_page |
| Last page; with a count, that page (12G) | Gpdf | pdf_last_page |
| Top of the current page | no default key | pdf_page_top |
| Bottom of the current page | no default key | pdf_page_bottom |
| Scroll a screen down | no default key | pdf_screen_down |
| Zoom in by 10 % (with a count: that many steps) | +pdfzipdfzIpdf | pdf_zoom_in |
| Zoom out by 10 % (with a count: that many steps) | -pdfzopdfzOpdf | pdf_zoom_out |
| Zoom to 100 %; with a count, that percent (150=) | =pdfzzpdfzZpdfz0pdf | pdf_zoom_set |
| Fit the whole page, also after a resize | apdf | pdf_fit_page |
| Fit the page's width, also after a resize | spdf | pdf_fit_width |
| Two pages side by side, or one (:dual) | no default key | pdf_dual_page |
| Two pages: the first alone, or paired | Dpdf | pdf_first_page_alone |
| One page at a time, or scrolling | wpdf | pdf_single_page |
| Rotate the pages 90 degrees clockwise (:rotate; a count: n times) | no default key | pdf_rotate |
| Presentation mode, or leave it (:present) | no default key | pdf_presentation |
| Open the outline (table of contents) in a panel | tabpdf | pdf_outline |
| Set a mark here: m and a letter or digit | mpdf | pdf_mark_set |
| Go back to a mark: ' and its letter or digit | pdf_mark_go |
PDF outline (15)
| Action | Keys | Name |
|---|---|---|
| Outline: next entry | jindexdownindex | index_down |
| Outline: previous entry | kindexupindex | index_up |
| Outline: expand the entry | lindexzoindex | index_expand |
| Outline: collapse the entry, or go to its parent | hindexzcindex | index_collapse |
| Outline: expand the entry and all under it | zOindex | index_expand_subtree |
| Outline: collapse the entry and all under it | zCindex | index_collapse_subtree |
| Outline: expand every entry | LindexzRindex | index_expand_all |
| Outline: collapse every entry | HindexzMindex | index_collapse_all |
| Outline: first entry | ggindex | index_first |
| Outline: last entry | Gindex | index_last |
| Outline: down half the entries shown | ctrl+dindex | index_half_down |
| Outline: up half the entries shown | ctrl+uindex | index_half_up |
| Outline: go to the entry and close the outline | enterindexspaceindex | index_follow |
| Outline: close it (in the filter: back to the whole outline) | tabindexescindexctrl+[indexqindex | index_close |
| Outline: filter the entries by their titles | /index | index_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/Kgo to the next / previous page, with a count (3J).gggoes to the first page andGto the last; with a count, to that page (12G,12gg), counted from 1 whatever the page labels say.:12on the command line goes to page 12 too.:pdf_page_topand:pdf_page_bottomgo to the top / bottom of the current page.spaceandshift+spacescroll a screen down and up, andHome/Endgo to the first / last page, as in pdf.js. - Zoom.
+,zi,zIzoom in and-,zo,zOzoom out by 10 % per step, with a count (2+).=,zz,zZandz0set 100 %, and a count sets that percent (150=).afits the whole page andsthe page's width, and the fit follows window and pane resizes until you zoom by hand. - Layout.
:dualshows two pages side by side, with the first page alone as in a printed book, and again goes back to one;Dtoggles whether the first page stands alone.wshows one page at a time.:rotaterotates the pages 90° clockwise. - Outline.
Tabmoves 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 saysINDEX.j/k(and the arrow keys) move,l/zoexpand andh/zccollapse an entry,zO/zCexpand / collapse an entry with everything under it,L/zRandH/zMexpand / collapse them all,gg/Ggo to the first / last entry andctrl+d/ctrl+umove half a panel.Enterorspacegoes to the entry and gives your keys back to the document (an outline shown as the PDF opened stays shown; oneTabopened closes);Tab,Esc,ctrl+[orqcloses 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;Entergoes to the entry andEscreturns to the whole outline. A PDF without an outline saysno outline in this PDF. - Marks.
mand 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 saysno mark 'a'. - Jumps.
ctrl+o/ctrl+iwalk 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.
flabels the links on screen and follows the one you pick.clabels them and copies the chosen link's target, and:show_link_targetshows it in a notice without following it. - Presentation.
:presentstarts pdf.js's presentation mode: full screen, one page at a time, fitted to the screen. Therej,J,spaceand the arrow keys go forward a page andk,Kandshift+spaceback;Escleaves it.F11is Vimma's full screen, as everywhere. - Files.
r,R,F5andctrl+rreload the PDF,ctrl+pprints it,ctrl+ssaves it, andyyandYcopy 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).