A new Gentoo installation includes nano by default - emerge a package from the following section to provide a vi-like editor. Beware that emerging a vi editor on a new installaton may allow nano to be depcleaned - see the default, fallback, and virtual packages section in the text editor article.
|Neovim||app-editors/neovim||Neovim is a hyperextensible Vim-based text editor.|
|pyvim||app-editors/pyvim||Implementation of Vim in Python.|
|Vim||app-editors/vim||Modern vi(like) editor, probably the most used clone. Optional GUI called Gvim.|
|vis||app-editors/vis||A vi-like editor based on Plan 9's structural regular expressions.|
More vi-like editors can be found online in the app-editors category or by running:
Launch vi(like) editor
A vi-like editor can usually be launched with the vi command. Vim can be launched with the vim command. Neovim is launched with the nvim command.
If a vi-like editor is not installed, busybox's vi may be available, try:
busybox vi -h
BusyBox v1.34.1 (2021-11-23 09:49:04 CET) multi-call binary. Usage: vi [-c CMD] [-R] [-H] [FILE]... Edit FILE -c CMD Initial command to run ($EXINIT also available) -R Read-only -H List available features
If Vim is installed, the vi and vim commands become synonymous due to the following link:
ls -al /usr/bin/vi
lrwxrwxrwx 1 root root 3 Nov 25 19:59 /usr/bin/vi -> vim
Use eselect vi to manage this link, from the app-eselect/eselect-vi package. eselect vi can currently select between the following: vim, nvim, nvi, elvis, vile, gvim, qvim, xvile, pyvim, and busybox.
The synonymous use also holds when setting editor defaults.