The Vi Editor
authors:
table of contents
Tilde.Club has The
Traditional Vi installed on its premises. It is not just another Vi clone,
but the direct continuation of Bill Joy’s legendary work at Berkeley.
The binaries are in /usr/archaic/bin/ and the man pages
(separately for ex and vi) in
/usr/archaic/share/man/man/.
You can invoke The Traditional Vi in several ways (in the order of increased engagement):
by the full path to the executable:
/usr/archaic/bin/viby adding it as an alias to your shell’s
rcfile (~/.bashrcfor Bash), e.g:alias tvi=/usr/archaic/bin/viand then invokng Vi by typing
tvi,by adding the locations Vi and its documentation in front of the
PATHandMANPATHenvironment variables in your shell’s profile script (for Bash,~/.bash_profileor~/.profile):export PATH="/usr/archaic/bin/:$PATH" export MANPATH="/usr/archaic/share/man/man:$MANPATH"
The latter method has the advantage of affecting subshells, so that
if you specify vi as the default editor in your e-mail or
news client, or another CLI program, it will invoke The Traditional
Vi, ditto for your shell scripts and the EDITOR
environment variale.
Resources §
- Bill Joy’s An Introduction to Display Editing with Vi,
vi(1)man page,ex(1)man page,- A concise
vireference, - The Ultimate guide to the VI and EX text editors (a paper book),
- The
#vichannel on the Libera.Chat IRC network, dedicated to the original Vi and all its variants except Vim & co, - VI experience in the shell.
Building §
The Traditional Vi is surprisingly easy to build from its source. You only
need to locate the following line in Makefile:
TERMLIB = termlib
and replace the value with curses or
ncurses, depending on your preferred terminal library. Now
you can build and install the project with:
make && make install