macOS
brew install nvilocal Homebrew formula metadata
sudo port install nviMacPorts ports tree · editors/nvi/Portfile · source: api.github.com
brew
44BSD re-implementation of vi. Version 1.81.6 via Homebrew; verified 2026-06-28.
install
brew install nvilocal Homebrew formula metadata
sudo port install nviMacPorts ports tree · editors/nvi/Portfile · source: api.github.com
sudo apt install nviDebian stable package indexes · nvi · source: deb.debian.org
nix profile install nixpkgs#nvinixpkgs package indexes · pkgs/by-name/nv/nvi/package.nix · source: api.github.com
sudo dnf install nexFedora Rawhide package metadata · nex · source: dl.fedoraproject.org
overview
44BSD re-implementation of vi
history
nvi is the Berkeley-line reimplementation of ex/vi: a small, traditional vi rather than a Vim-family editor. In package-manager terms it is the BSD vi option people install when they want historical ex/vi behavior with nvi's later conveniences.
The nvi source describes the editor as a reimplementation of the ex/vi editors from 4BSD. Keith Bostic's Berkeley Vi page says the source is freely available and redistributable, and lists features that distinguished nvi from old vi, including multiple edit buffers, command-line editing, path completion, tag stacks with cscope support, extended regular expressions, infinite undo, horizontal scrolling, message catalogs, and early Perl/Tcl scripting support.
The repo.or.cz README records the deeper lineage: nvi was originally derived from Steve Kirkendall's elvis vi clone, uses Henry Spencer's POSIX-style regular expression code, and retains acknowledgements to Bill Joy and Mark Horton from original vi. The maintained repo also shows ongoing maintenance by Sven Verdoolaege.
nvi's adoption is mostly Unix/BSD preservation rather than hype-cycle growth. It appears in Homebrew, Debian, MacPorts, Nix, and related package sets as the classic 44BSD vi reimplementation, while Homebrew's formula distributes version 1.81.6 as bottled packages for macOS and Linux.
Homebrew marks the formula deprecated. That does not erase nvi's historical role, but it does show the Homebrew package has become a legacy editor package rather than an actively expanding developer-tool ecosystem.
Users run nvi directly as `nvi`, `nex`, or `nview` for vi, ex, and read-only view workflows. Package nerds pick it for low-dependency POSIX-ish editing, scripts or muscle memory built around vi/ex behavior, and systems where Vim or Neovim would be more editor than needed.
The practical distinction is that nvi aims to preserve ex/vi semantics while adding careful terminal-era quality-of-life features. It is a good fit for editing config files, working over remote shells, and testing vi-compatible behavior.
nvi is significant because it carries the Berkeley vi branch into modern package managers. It is not the most popular vi implementation, but it is one of the reference points for what 'real vi' means on BSD-like systems.
Its package story is also a reminder that some important packages are maintained as infrastructure memory: small install counts, old code, and still useful when compatibility matters.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
nex | cli | global executable | |
nvi | cli | global executable | |
nview | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:nvi |
|---|---|
| Version | 1.81.6 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/nvi |
| Homepage | https://repo.or.cz/nvi.git |
| Repository | https://repo.or.cz/nvi.git |
| Upstream docs | https://repo.or.cz/nvi.git |
| License | BSD-3-Clause |
| Source archive | https://deb.debian.org/debian/pool/main/n/nvi/nvi_1.81.6.orig.tar.gz |
| Last updated | 2026-06-28T21:02:37+01:00 |
| Pulse | updated |
| Dependencies | berkeley-db@5 |
| Build dependencies | autoconf, automake, libtool, xz |
| Uses from macOS | ncurses |
| Bottle | available (on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | nvi |
| Version Scheme | 0 |
| Revision | 6 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | yes |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
nvi 1.81.6-23
4.4BSD re-implementation of vi
sudo apt install nvinvi-doc 1.81.6-23
4.4BSD re-implementation of vi - documentation files
sudo apt install nvi-docnvi
nix profile install nixpkgs#nvinvi 1.81.6-21
4.4BSD re-implementation of vi
sudo apt install nvinvi-doc 1.81.6-21
4.4BSD re-implementation of vi - documentation files
sudo apt install nvi-docnvi
sudo port install nvinex 0.0.0+git.2021.03.30.1a3320dab9-3
lexer similar to Lex/Flex - cli
sudo apt install nexnex
nix profile install nixpkgs#nexnex 0.0.0+git.2021.03.30.1a3320dab9-2
lexer similar to Lex/Flex - cli
sudo apt install nexnex 20210330-18.fc44
A lexer generator for Go that is similar to Lex/Flex
http://www-cs-students.stanford.edu/~blynn/nex/
sudo dnf install nexsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.