For those of us who prefer vi over vim there are no good options for editing Python code. Attached is a patch (based on one by rokuyama at rk.phys.keio.ac.jp) that adds the EXPANDTAB option to nvi which adds an expandtab option to nvi.
Created attachment 201665 [details] patch
A commit references this bug: Author: leres Date: Thu Mar 21 17:17:49 UTC 2019 New revision: 496476 URL: https://svnweb.freebsd.org/changeset/ports/496476 Log: For those of us who prefer vi over vim there are no good options for editing Python code. This patch (based on one by rokuyama at rk.phys.keio.ac.jp) that adds the EXPANDTAB option to nvi (defaults to off) which adds an expandtab option to nvi. PR: 235446 Approved by: johans (maintainer timeout, 6 weeks), matthew (mentor, implicit) Changes: head/editors/nvi-devel/Makefile head/editors/nvi-devel/files/extra-patch-expandtab