nvi is an implementation of the ex/vi text editor.
The original vi was written by William Joy. Later Mark Horton added
a number of enhancements.
nvi was written by Keith Bostic and was distributed as part of the
Fourth Berkeley Software Distribution (4BSD) by the University of
California, Berkeley.
This version is based on a fork of nvi by Sven Verdoolaege. It is
very similar to the base vi but includes the expandtab option from
NetBSD which is handy for Python development.
===> The following configuration options are available for nvi2-2.2.2:
DEBUG=off: Build with debugging support
ICONV=on: Enable iconv support
WIDECHAR=on: Enable wide-character support (UTF-8)
===> Use 'make config' to modify these settings
editors/nvi2: Update to 2.2.2
https://github.com/lichray/nvi2/compare/v2.2.1...v2.2.2
Changes:
- New option showfilename
- Show percentage in addition to line counts in ruler
- Fixed a segfault in expandtab
- Improve POSIX-compliance when handling ex insert empty lines
- Counted-p pastes without interleaving copied content
- Code in analyzer-friendly style
- Portability fixes
Reported by: Zhihao Yuan
editors/nvi2: Update to 26-Apr-2024 (52c07e8)
- In ruler show the current line number as a percentage of the
total lines
- Link macro for hyperlink
- Add showfilename set option
- Fix undefined string comparison
- Replace Clang-only __builtin_is_aligned with C code
- Use memmove to realign buffers
editors/nvi2: Update to V2.2.1
https://github.com/lichray/nvi2/releases/tag/v2.2.1
Changes since V2.2.0:
- Display control chars in altnotation.
- Intuitively jump between troff paragraphs.
- Keep correct count for unprintable character sequences in
opts_print().
- Do a full reformat when ^L/^R redrawing.
(Only the first 15 lines of the commit message are shown above )
editors/nvi2: Fix core dump when tags file pattern has a trailing '\'
If you create a tags file of a macro that ends with a '\' and tag
for it, vi dumps core. For example:
zinc 76 % cat test.h
#define LATIN2PLAIN(ch) (((u_char)ch) >= 0x80 ? \
pgm_read_byte_far(pgm_get_far_address(latin2plain) + \
(((u_char)ch) - 0x80)) : (isprint(ch) ? (ch) : '_'))
zinc 77 % ctags test.h
zinc 78 % vi -t LATIN2PLAIN
Segmentation fault
The problem is that the loop variable is unsigned (size_t) and it
gets decremented twice: 1 -> 0 -> 4294967295
Apply the upstream patch to solve this:
https://github.com/lichray/nvi2/pull/111
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
*/*: Remove redundant '-[0-9]*' from CONFLICTS_INSTALL
The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").
Approved by: portmgr (blanket)
editors/nvi2: fix build on GCC architectures
Use newer GCC:
cc1: error: unrecognized command line option "-Wno-dangling-else"
cc1: error: unrecognized command line option "-fcolor-diagnostics"
-fcolor-diagnostics is incompatible with GCC, compilation works fine with Clang
also without it.
editors/nvi2: Update to 2.2.0
Switch to the release version, there are no functional changes
compared to 2.1.3.g2020801.
Documented changes between 2.1.3 and 2.2.0:
https://github.com/lichray/nvi2/releases/tag/v2.2.0
- Vim-style expandtab option
- Provides Turkish translation
- Backspace now deletes \ rather than being escaped
- T during motion commands is now VI-compatible
- Encoding related fixes, such as UTF-8 detection
- Fixed a number of memory management issues
editors/nvi2: Update to the 2020801 version
- The expandtab option now applies to lines filtered with the !
command
- Enable Ninja for the build thanks to upstream changes
- Add symlinks for the nex and nview man pages