Skip to content
OpenBSD Mg editor. Portable Public Domain Micro Emacs for *BSD, Cygwin, Linux, Mac OS X.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CVS
.gitignore
.travis.yml
NOTES.md
README-Mg
README.md
apple.h
autoexec.c
basic.c
bell.c
buffer.c
chrdef.h
cinfo.c
cmode.c
common.h
configure
cscope.c
def.h
dir.c
dired.c
display.c
dragonfly.h
echo.c
extend.c
extensions.c
file.c
fileio.c
fparseln.c
freebsd.h
fstatat.c
funmap.c
funmap.h
futimens.c
getline.c
grep.c
help.c
kbd.c
kbd.h
key.h
keymap.c
line.c
linux.h
macro.c
macro.h
main.c
match.c
mg.1
modes.c
netbsd.h
paragraph.c
pathnames.h
re_search.c
reallocarray.c
region.c
search.c
spawn.c
strlcat.c
strlcpy.c
strndup.c
strtonum.c
tags.c
tree.h
tty.c
ttyio.c
ttykbd.c
tutorial
undo.c
util.c
util.h
version.c
window.c
word.c
yank.c

README.md

Build Status

mg

This is a portable version of the Mg editor from OpenBSD by an OpenBSD developer who did a bunch of overhaul work on the version of Mg found in the OpenBSD base system.

Mg is intended to be a small, fast, and portable editor for people who can't (or don't want to) run emacs for one reason or another, or are not familiar with the vi editor. It is compatible with emacs because there shouldn't be any reason to learn more editor types than emacs or vi.

This repository aggressively tracks upstream.

Compiling

mg has a simple configure script that generates a POSIX Makefile.

$ ./configure
$ make
$ sudo make install

Dependencies

You need the ncurses library.

Testing

Tested on recent versions of Arch, Cygwin, Debian, DragonFly BSD, FreeBSD, Mac OS X (10.10 or later), NetBSD, Slackware, and Ubuntu.

Licensing

Files originating from mg are Public Domain. Files needed for portability have their own individual license headers. All licenses are ISC or BSD.

Get a tarball

See the Releases tab on GitHub.

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.