Post

VimCommander 0.4: a two-pane file manager with vim keys, made for embedded work

VimCommander is a free two-pane file manager for Windows, macOS and Linux that you drive with vim keys. It previews code, linker map files, STM32CubeMX projects, LTspice results, oscilloscope CSVs and STEP models.

VimCommander 0.4: a two-pane file manager with vim keys, made for embedded work

I spend my days in vim, and for years I switched between two kinds of file manager. Terminal ones (vifm, ranger) have the keys but no real previews. Desktop ones (Total Commander, Explorer) have the windows but want the mouse. So I wrote my own: VimCommander, a two-pane desktop file manager where every action is a vim key or a : command.

Version 0.4.0 is out today. This post shows what it does and why it’s useful if, like me, you work with microcontrollers.

Vim keys for files

If you know vim, you already know most of it:

  • j / k to move, l / h to open and go up, Tab for the other pane
  • yy and p to copy, dd and p to move, F5 / F6 straight to the other pane
  • counts and motions: 3yy, d3j, yG, gUj (names to upper case)
  • registers ("ayy, "+p), macros (qa…q, @a), marks, and . to repeat
  • :s/old/new/ and :g/pattern/cmd on file names
  • u / Ctrl-r undo copies, moves, renames and deletes, even after a restart

When you forget what comes next, pause after g, z or Ctrl-w and a which-key panel lists every key that can follow:

Which-key panel after pressing g Which-key: every key that can follow g

Quick view for the files embedded developers actually open

Ctrl-q turns the other pane into a preview of whatever is under the cursor. Besides images, PDFs and Markdown, it understands the files I deal with every day.

Source code in colour, for C, Python and every other language Pygments knows:

C source code in quick view

Linker map files. A GNU ld or Keil .map, or an .elf, shows how full Flash and RAM are, with a treemap of sections, object files and functions. Click to zoom in. It answers “what ate my Flash?” in seconds:

Firmware memory map of an STM32 project

Oscilloscope captures and LTspice results. A CSV from a Siglent or Rigol scope, or an LTspice .raw file, becomes a plot. Each channel gets its own strip with min, max, mean and RMS. Drag to zoom, or click a column name to plot the others against it:

Inverter voltage, coil current and output voltage of a wireless charger

STEP and STL models, from a single part to a whole board exported from Altium or KiCad. Drag to rotate, click two points to measure (it snaps to hole centres), and hover to see part names (designators on Altium boards):

An STL gear in the 3D preview

It also shows STM32CubeMX .ioc projects (chip, clocks, pin table, DMA, interrupts), Jupyter notebooks, and JSON or YAML as a tree.

And the rest

  • Folder graphs: a tree, sunburst or treemap of disk usage, note links like Obsidian, and imports between source files
  • A terminal pane (bash, PowerShell or WSL) that follows the file pane
  • SSH and FTP folders that work like local ones, and sharing files with a phone by QR code
  • Folder compare and sync, and a vimdiff-style side-by-side diff with git status colours
  • All four Catppuccin themes built in (Latte, Frappé, Macchiato, Mocha), plus accent files

Try it

  • Windows: download the zip from the latest release, unzip it, and run VimCommander.exe. No Python needed.
  • Linux and macOS: run it from source with Python 3.10 or newer:
1
2
3
4
5
git clone https://github.com/vim4all/VimCommander.git
cd VimCommander
python3 -m venv .venv
.venv/bin/pip install -r requirements.txt
.venv/bin/python main.py

It’s free and MIT-licensed. If something doesn’t work the way your vim fingers expect, or a .map or .ioc file shows up wrong, please open an issue or say hello in the discussions.

This post is licensed under CC BY 4.0 by the author.