Fork me on GitHub

Paravim

A parasitic editor for Nim


What is it?

Paravim is an editor for Nim powered by Vim (via libvim) and rendered with OpenGL (via paranim).

Join the discussion on /r/Paravim and read the source code.


You can support this project via my github sponsors or my patreon.

How do I get started?

To use it, install Nim and do:

nimble install pvim

Then, as long as you have ~/.nimble/bin on your PATH, you should be able to run pvim in any directory.

A few notes for linux users:

  1. On Ubuntu, if pvim fails to build, you may need to install X11 and OpenGL related libraries with sudo apt install xorg-dev libgl1-mesa-dev
  2. On Ubuntu, if pvim fails to load, try sudo apt install libtinfo5
  3. On Arch, if pvim fails to load, you may need to do sudo ln -s /usr/lib/libtinfo.so.6 /usr/lib/libtinfo.so.5

Embedding inside a game

Since Paravim is rendered with OpenGL, it can be embedded in a game:

In this example, it is being rendered on top of a platformer and toggled with the escape key. You can try it yourself by cloning the example repo and running nimble dev in any of the projects.