I made a small Vim 9.2+ plugin called thumb.
- Put the cursor on an image path →
:Thumb→ popup the image. - Select LaTeX in Visual mode →
:Thumb→ render it as an image popup.
For example:

Put the cursor on diagram.png and run:
:Thumb
Or select:
\frac{a}{b} = \sqrt{x^2 + y^2}
and run:
:Thumb
It uses Vim's native popup image support, with Python/Pillow for image conversion and matplotlib for LaTeX rendering.
No mappings are installed, so you can add your own:
nnoremap <leader>t <Cmd>Thumb<CR>
xnoremap <leader>t <Cmd>Thumb<CR>
GitHub: https://github.com/JosefAlbers/thumb
Requires Vim 9.2+, Python 3, Pillow, and matplotlib.
Feedback welcome, particularly around the popup positioning/rendering.
Top comments (0)