Version 0.1.0.1697 · Free · Mac · Windows · Linux · FreeBSD · Plan 9
vi, small. On every computer you have. Free.
TinyVi is a small vi: one program, with no libraries to install, that behaves the same in a Mac terminal, the Windows console, a Linux server over ssh and Plan 9. Its keys were checked, one by one, against Vim's.
No account, no advertising.
F1 · Editing
The keys your fingers remember.
Motions, operators and counts work as in vi: d3w, c$, 5., "ayy. Undo goes back 1000 changes, and Ctrl-R redoes them.
- :s
- :g
- :v
- :m
- :t
- :r
- :w
- :e
- / ?
- n N
- marks
- registers
- >> <<
- J
- %
- Checked against Vim. More than 300 key sequences give the same text and cursor as Vim 9.1.
- Ex commands. Ranges,
:swith its flags,:gand:v::g/^$/ddeletes the empty lines. - Its limits are written down. Every command it has is listed, and so is what it does not have.

F2 · Files
Your file, as it was. Your changes, kept.
TinyVi writes what you changed, and nothing else.
Recovery
The connection drops, or the window closes, before you write: vi -r gives your changes back. vi -r alone lists the files that have them.
Line ends
A Windows file stays a Windows file: CRLF line ends are kept, with no ^M on the screen. A file with no last newline stays so.
Any bytes
Bytes that are not UTF-8 are shown and written back as they were.
Safe writes
A write goes to a new file that then takes the old one's place. Links stay links. A file changed by someone else since you opened it is not written over without :w!.
F3 · Shell
Your shell, without leaving.
:!cmd runs a command and shows what it writes as it writes it. :sh gives you a shell, and leaving it brings you back to your file.
- Filters.
!Gsortand:%!sortput lines through a program. - Ctrl-C stops it. A command that runs too long stops; your file does not.
- A library too. TinyVi is a Go library: a program can give it its own screen, files and shell. The DCL shell's
VIruns DCL commands this way.

F4 · Everywhere
Mac, Windows, Linux, FreeBSD and Plan 9.
One program, no libraries to install, and the same keys on each.
Unix
Any terminal, over ssh too: it reads your terminal's terminfo entry. :! runs your $SHELL.
Windows
Windows Terminal, the console window or ssh. Escape is always Escape. :! runs cmd.exe.
Plan 9
Built for 9front and Plan 9 on x64, 386 and ARM. It runs in vt(1), and :! runs rc.
In your browser
The DCL shell's VI is TinyVi. Open its demo and type VI README.TXT.
F5 · Download
Download TinyVi 0.1.0.1697
Free, on every system: the licence. Choose the file for your computer. Each holds the program, tinyvi, with the licence, the third-party notices and the command list.
| System | You need | Download |
|---|---|---|
| macOS | macOS 13 Ventura or later, on Apple Silicon or Intel |
|
| Windows | Windows 10 or later, or Windows Server 2016 or later |
|
| Linux | Linux kernel 3.2 or later. No libraries needed. ARM64 for a Raspberry Pi 3, 4 or 5 with a 64-bit OS |
|
| FreeBSD | FreeBSD 14 or later |
|
| Plan 9 | 9front or Plan 9 from Bell Labs |
|
How to install it
Mac, Linux and FreeBSD: unpack it, then put the program where your shell finds it:
tar -xzf tinyvi-*.tar.gz # on a Mac: unzip tinyvi-*.zip
sudo install -m 755 tinyvi-*/tinyvi /usr/local/bin/
tinyvi notes.txt
To have it as vi, link it: sudo ln -s /usr/local/bin/tinyvi /usr/local/bin/vi. Your system's own vi stays where it is.
Windows: unzip it, and put tinyvi.exe in a folder on your PATH. Run it in Windows Terminal or a console window.
Plan 9: unpack it with tar xzf, copy tinyvi to $home/bin/$cputype/, and run it in vt(1). Keep the name: Plan 9's vi is the MIPS simulator.
The Mac program is not notarised by Apple yet. If macOS refuses to run it, open System Settings, go to Privacy & Security, and click Open Anyway, or run xattr -d com.apple.quarantine tinyvi.
TinyVi is not made by, or connected with, the makers of Vim.