Minimal vi-like text editor in ~500 SLOC.
mvi is less advanced than svi.
:d - delete line
:q - quit
:q! - force quit
:w [file] - write to file
h,j,k,l - left, down, up, right
i - insert mode
ESC - normal mode
- ncursesw
(or ansicurses with
-lansicurses
and#include <ansicurses.h>
) - libutf (another compatible libutf here)
The editor is very minimal, so few commands are supported. Search, substitute, etc, should rather be in a fork.
mvi is fully functional.