Hacker News new | ask | show | jobs
by trn 1576 days ago
To give a quick overview of ':set'-able options (`:set all` output) of the various editors that derive from 'nvi' ... [no Nvi2 here ... yet] ...

Nv1 [nvi-1.81.6-45-g864873d3 (2022-02-21)]:

    noaltwerase     nocomment       noignorecase    nomodeline      noreadonly      noshowmode      nottywerase
    noautoindent    noedcompatible  keytime=6       msgcat="./"     noredraw        sidescroll=16   noverbose
    autoprint       escapetime=1    noleftright     noprint=""      remap           noslowopen      warn
    noautowrite     noerrorbells    lines=24        nonumber        report=5        nosourceany     window=23
    backup=""       noexrc          nolisp          nooctal         noruler         tabstop=8       nowindowname
    nobeautify      noextended      nolist          open            scroll=11       taglength=0     wraplen=0
    cdpath=":"      filec=""        lock            optimize        nosearchincr    tags="tags"     wrapmargin=0
    cedit=""        flash           magic           path=""         nosecure        noterse         wrapscan
    columns=117     hardtabs=0      matchtime=7     print=""        shiftwidth=8    notildeop       nowriteany
    nocombined      noiclower       mesg            prompt          noshowmatch     timeout
    directory="/tmp"
    fileencoding="UTF-8"
    inputencoding="UTF-8"
    paragraphs="IPLPPPQPP LIpplpipbp"
    recdir="/var/tmp/vi.recover"
    sections="NHSHH HUnhsh"
    shell="/bin/zsh"
    shellmeta="~{[*?$`'"\"
    term="screen-256color"
OpenVi [7.0.13-dev (OpenVi) 02/20/2022]:

    noaltwerase     nocomment       noiclower       mesg            report=5        taglength=0     nowindowname
    noautoindent    noedcompatible  noignorecase    noprint=""      noruler         tags="tags"     wraplen=0
    autoprint       escapetime=2    noimctrl        nonumber        scroll=11       noterse         wrapmargin=0
    noautowrite     noerrorbells    keytime=6       nooctal         nosearchincr    notildeop       wrapscan
    backup=""       noexpandtab     noleftright     open            nosecure        timeout         nowriteany
    nobeautify      noexrc          lines=23        path=""         shiftwidth=8    nottywerase
    nobserase       noextended      nolist          print=""        noshowmatch     noverbose
    cdpath=":"      filec=" "       lock            prompt          noshowmode      novisibletab
    cedit=""        noflash         magic           noreadonly      sidescroll=16   warn
    columns=117     hardtabs=0      matchtime=7     remap           tabstop=8       window=22
    imkey="/?aioAIO"
    paragraphs="IPLPPPQPP LIpplpipbpBlBdPpLpIt"
    recdir="/var/tmp/vi.recover"
    sections="NHSHH HUnhshShSs"
    shell="/bin/zsh"
    shellmeta="~{[*?$`'"\"
    term="screen-256color"
OpenBSD vi [7.0-current]:

    noaltwerase     escapetime=1    noleftright     path=""         noshowmatch     warn
    noautoindent    noerrorbells    lines=36        print=""        noshowmode      window=35
    autoprint       noexpandtab     nolist          prompt          sidescroll=16   nowindowname
    noautowrite     noexrc          lock            noreadonly      tabstop=8       wraplen=0
    backup=""       noextended      magic           remap           taglength=0     wrapmargin=0
    nobeautify      filec=" "       matchtime=7     report=5        tags="tags"     wrapscan
    cdpath=":"      noflash         mesg            noruler         noterse         nowriteany
    cedit=""        hardtabs=0      noprint=""      scroll=17       notildeop
    columns=108     noiclower       nonumber        nosearchincr    timeout
    nocomment       noignorecase    nooctal         nosecure        nottywerase
    noedcompatible  keytime=6       open            shiftwidth=8    noverbose
    paragraphs="IPLPPPQPP LIpplpipbpBlBdPpLpIt"
    recdir="/tmp/vi.recover"
    sections="NHSHH HUnhshShSs"
    shell="/usr/local/bin/zsh"
    shellmeta="~{[\*?$`'"\"
    term="screen-256color"
Traditional vi [n-t-roff Heirloom vi (01/14/2017)]:

    noautoindent            nomodelines                     noshowmode
    autoprint               nonumber                        noslowopen
    noautowrite             open                            nosourceany
    nobeautify              nooptimize                      tabstop=8
    directory=/var/tmp      paragraphs=IPLPPPQPP LIpplpipbp taglength=0
    noedcompatible          prompt                          tags=tags /usr/lib/tags
    noerrorbells            noreadonly                      term=screen-256color
    noexrc                  redraw                          noterse
    flash                   remap                           timeout
    hardtabs=8              report=5                        ttytype=screen-256color
    noignorecase            scroll=17                       warn
    nolisp                  sections=NHSHH HUnhsh           window=35
    nolist                  shell=/usr/bin/zsh              wrapscan
    magic                   shiftwidth=8                    wrapmargin=0
    mesg                    noshowmatch                     nowriteany
1 comments

Of particular note, the lack of `expandtab` in Nvi and Traditional vi may be more of a showstopper than lack of multibyte glyph rendering for many.