$Id: README,v 1.13 2021/11/23 02:53:38 nanons Exp $

ex(1)/vi(1) configuration snippets
See also: mg(1) ed(1)

To enable these snippets, copy their contents to ~/.nexrc, or to
/etc/vi.exrc to enable them system-wide, and optionally change the
mappings if they overlap.

Warning: These files contain raw control codes.  You cannot copy their
contents properly by highlighting and copy-pasting, they should be
opened with ex(1)/vi(1) and the contents yanked into other files.

New users may be tempted to install third party vi clones such as vim.
Generally, vi(1) is more than good enough for their use cases, and has
the advantage of being pledge(2)d, audited and well tested on OpenBSD.
See also: https://undeadly.org/cgi?action=article;sid=20080607131856

Learning
========

Read the entire manual page, OpenBSD's vi(1) has a lot more to offer
than one might think, including features that other vi(1)
implementations don't have.

OpenBSD provides an interactive quiz(6) for learning common ed(1)
commands, which also apply to ex(1)/vi(1):

	$ quiz function ed-command

Very good resources for learning vi(1):

	https://docstore.mik.ua/orelly/unix3/upt/ch17_01.htm
	https://docstore.mik.ua/orelly/unix3/upt/ch18_01.htm

Some cool tricks and more references:

	https://why-vi.rocks
