nvi expandtab - tabs to spaces

Christian Weisgerber naddy at mips.inka.de
Tue Jun 2 18:15:16 UTC 2020

On 2020-05-26, Ottavio Caruso via freebsd-questions <freebsd-questions at freebsd.org> wrote:

> What version of vi is on OpenBSD 6.7? On my 6.6 [Version 1.79
> (10/23/96)] the expandtab is not available, but on NetBSD 9.0 [Version
> (1.81.6-2013-11-20nb4], it is.

Todd Miller added this feature very recently to OpenBSD's nvi:

| commit ebcaf48cd321e191f80bc88097c598e86cc10bf5
| from: millert <millert at openbsd.org>
| date: Thu Apr 30 10:40:21 2020 UTC
| Add an expandtab option, similar to what vim supports.
| If set, expands tabs to spaces in insert mode as well as when
| shifting and indenting/outdenting.  If quoted with ^V, a literal
| tab is inserted.  Adapted from NetBSD, but this implementation
| more closely matches vim's behavior.  OK dlg@

Christian "naddy" Weisgerber                          naddy at mips.inka.de

More information about the freebsd-questions mailing list